File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
part-1-web-server-basics/hr_app
part-2-database-basics/hr_app Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ async function shutdown(e) {
34
34
console . log ( 'Exiting process' ) ;
35
35
36
36
if ( err ) {
37
- process . exit ( 1 ) ;
37
+ process . exit ( 1 ) ; // Non-zero failure code
38
38
} else {
39
39
process . exit ( 0 ) ;
40
40
}
@@ -53,7 +53,8 @@ process.on('SIGINT', () => {
53
53
} ) ;
54
54
55
55
process . on ( 'uncaughtException' , err => {
56
- console . log ( 'Uncaught exception' , err ) ;
56
+ console . log ( 'Uncaught exception' ) ;
57
+ console . error ( err ) ;
57
58
58
59
shutdown ( err ) ;
59
60
} ) ;
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ async function shutdown(e) {
60
60
console . log ( 'Exiting process' ) ;
61
61
62
62
if ( err ) {
63
- process . exit ( 1 ) ;
63
+ process . exit ( 1 ) ; // Non-zero failure code
64
64
} else {
65
65
process . exit ( 0 ) ;
66
66
}
@@ -79,7 +79,8 @@ process.on('SIGINT', () => {
79
79
} ) ;
80
80
81
81
process . on ( 'uncaughtException' , err => {
82
- console . log ( 'Uncaught exception' , err ) ;
82
+ console . log ( 'Uncaught exception' ) ;
83
+ console . error ( err ) ;
83
84
84
85
shutdown ( err ) ;
85
86
} ) ;
You can’t perform that action at this time.
0 commit comments