File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -42,19 +42,19 @@ function loadConfig (program, options) {
4242 argv = { ...config , ...argv }
4343 } catch ( err ) {
4444 // If config file was specified, but it doesn't exist, stop with error message
45- if ( typeof argv [ 'configFile' ] !== 'undefined' ) {
46- if ( ! fs . existsSync ( configFile ) ) {
47- console . log ( red ( bold ( 'ERR' ) ) , 'Config file ' + configFile + ' doesn\'t exist.' )
45+ if ( typeof argv [ 'configFile' ] !== 'undefined' ) {
46+ if ( ! fs . existsSync ( configFile ) ) {
47+ console . log ( red ( bold ( 'ERR' ) ) , 'Config file ' + configFile + ' doesn\'t exist.' )
4848 process . exit ( 1 )
4949 }
5050 }
51-
51+
5252 // If the file exists, but parsing failed, stop with error message
5353 if ( fs . existsSync ( configFile ) ) {
54- console . log ( red ( bold ( 'ERR' ) ) , 'config file ' + configFile + ' couldn\'t be parsed: ' + err )
54+ console . log ( red ( bold ( 'ERR' ) ) , 'config file ' + configFile + ' couldn\'t be parsed: ' + err )
5555 process . exit ( 1 )
5656 }
57-
57+
5858 // Legacy behavior - if config file does not exist, start with default
5959 // values, but an info message to create a config file.
6060 console . log ( cyan ( bold ( 'TIP' ) ) , 'create a config.json: `$ solid init`' )
You can’t perform that action at this time.
0 commit comments