mirror of
https://github.com/LBRYFoundation/lbcd.git
synced 2025-08-23 17:47:24 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue