We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 556bd93 commit ed66875Copy full SHA for ed66875
scripts/install.js
@@ -64,6 +64,12 @@ function make(fullPath) {
64
make.stdout.on('data', data => console.log(data.toString()));
65
make.stderr.on('data', data => console.error(data.toString()));
66
67
+ make.on('error', error => {
68
+ console.log('An error has occurred: ' + error.message);
69
+ console.log('Ensure make is installed - on debian: sudo apt install build-essential');
70
+ reject(error);
71
+ })
72
+
73
make.on('exit', code => {
74
if (code) {
75
console.error('make exited with code ' + code.toString());
@@ -94,7 +100,7 @@ async function main() {
94
100
95
101
main()
96
102
.then(() => console.log('done'))
97
- .catch(err => {
98
- console.log(err);
103
+ .catch(error => {
104
+ console.log(error.message || error);
99
105
process.exit(1);
- });
106
+ });
0 commit comments