Skip to content

Commit

Permalink
Log exit code and signal if npm errors
Browse files Browse the repository at this point in the history
part of FlowFuse/flowfuse#3630

This is a first itteration to record the exit codes.

Still needs more customer friendly message
  • Loading branch information
hardillb committed Mar 26, 2024
1 parent 18aed0e commit fb06549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class Launcher {
if (code === 0) {
resolve()
} else {
reject(new Error('Failed to install project dependencies'))
reject(new Error(`Failed to install project dependencies ret code: ${code} signal ${child.signalCode}`))
}
})
}).catch(err => {
Expand Down

0 comments on commit fb06549

Please sign in to comment.