Merge pull request #458 from harshavardhana/pr_out_fix_a_bug_introduced_in_qdb_migration_commit_27d87fdd8ec268446c238009cb86af1b255582dc_when_config_file_doesn_t_exist
This commit is contained in:
@@ -38,6 +38,12 @@ func checkConfig() {
|
||||
log.Debug.Println(iodine.New(err, nil))
|
||||
console.Fatalln("mc: Unable to obtain user's home directory")
|
||||
}
|
||||
|
||||
// If config doesn't exist, do not attempt to read it
|
||||
if !isMcConfigExist() {
|
||||
return
|
||||
}
|
||||
|
||||
// Ensures config file is sane
|
||||
_, err = getMcConfig()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user