File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,12 @@ function make(fullPath) {
64
64
make . stdout . on ( 'data' , data => console . log ( data . toString ( ) ) ) ;
65
65
make . stderr . on ( 'data' , data => console . error ( data . toString ( ) ) ) ;
66
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
+
67
73
make . on ( 'exit' , code => {
68
74
if ( code ) {
69
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 ) ;
100
- } ) ;
106
+ } ) ;
You can’t perform that action at this time.
0 commit comments