Skip to content

Commit

Permalink
Merge branch 'error-run-npm-ci' of https://github.com/SAP-samples/clo…
Browse files Browse the repository at this point in the history
…ud-cap-samples into error-run-npm-ci
  • Loading branch information
Daniel Schlachter authored and DanSchlachter committed Aug 7, 2024
2 parents 31921d9 + a7ebf4e commit 687cb0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bookstore/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ cds.once('bootstrap',(app)=>{
app.serve ('/reviews') .from ('@capire/reviews','app/vue')
app.serve ('/orders') .from('@capire/orders','app/orders')
app.serve ('/data') .from('@capire/data-viewer','app/viewer')
} catch {
throw new Error('Run "npm ci" to install the required dependencies')
} catch (err) {
if (err.code === 'MODULE_NOT_FOUND') throw new Error('Run "npm ci" to install the required dependencies')
throw err
}
})

Expand Down

0 comments on commit 687cb0b

Please sign in to comment.