mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-10-14 00:59:33 +00:00
Return error on dir create failure from loadConfig.
Rather than simply exiting on a home directory creation error, return the error so it exits via the normal path.
This commit is contained in:
parent
deb19c2fa3
commit
02e6d47590
@ -190,7 +190,7 @@ func loadConfig() (*config, []string, error) {
|
|||||||
err := os.MkdirAll(btcdHomeDir, 0700)
|
err := os.MkdirAll(btcdHomeDir, 0700)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("%v", err)
|
log.Errorf("%v", err)
|
||||||
os.Exit(-1)
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pre-parse the command line options to see if an alternative config
|
// Pre-parse the command line options to see if an alternative config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user