File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/lockfile-lint/bin Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ let config
31
31
try {
32
32
config = require ( '../src/config' ) ( process . argv )
33
33
debug ( `parsed the following options: ${ JSON . stringify ( config ) } ` )
34
- } catch ( err ) {
35
- debug ( `error loading options from CLI arguments/files: ${ err } ` )
34
+ } catch ( errorPayload ) {
35
+ debug ( `error loading options from CLI arguments/files: ${ errorPayload } ` )
36
36
process . exit ( 1 )
37
37
}
38
38
@@ -82,10 +82,10 @@ try {
82
82
type : config [ 'type' ] ,
83
83
validators
84
84
} )
85
- } catch ( error ) {
85
+ } catch ( errorPayload ) {
86
86
warn ( 'ABORTING lockfile lint process due to error exceptions' )
87
- console . error ( error . message , '\n' )
88
- console . error ( error . stack , '\n' )
87
+ console . error ( errorPayload . message , '\n' )
88
+ console . error ( errorPayload . stack , '\n' )
89
89
error ( 'Error: command failed with exit code 1' )
90
90
process . exit ( 1 )
91
91
}
You can’t perform that action at this time.
0 commit comments