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 @@ -51,7 +51,7 @@ const configuration = {
51
51
description : {
52
52
color : 'toggle formatted output' ,
53
53
edit : 'read last commit message found in ./git/COMMIT_EDITMSG' ,
54
- ' extends' : 'array of shareable configurations to extend' ,
54
+ extends : 'array of shareable configurations to extend' ,
55
55
from : 'lower end of the commit range to lint; applies if edit=false' ,
56
56
preset : 'conventional-changelog-preset to use for commit message parsing' ,
57
57
to : 'upper end of the commit range to lint; applies if edit=false' ,
@@ -126,7 +126,7 @@ async function main(options) {
126
126
throw error ;
127
127
}
128
128
129
- console . log ( '' ) ;
129
+ return console . log ( '' ) ;
130
130
} ) ) ;
131
131
}
132
132
@@ -139,4 +139,10 @@ main(cli)
139
139
}
140
140
throw error ;
141
141
} )
142
- )
142
+ ) ;
143
+
144
+ // Catch unhandled rejections globally
145
+ process . on ( 'unhandledRejection' , ( reason , promise ) => {
146
+ console . log ( 'Unhandled Rejection at: Promise ' , promise , ' reason: ' , reason ) ;
147
+ throw reason ;
148
+ } ) ;
You can’t perform that action at this time.
0 commit comments