Skip to content

Commit

Permalink
Merge remote-tracking branch 'C-ollins/error_format' into error_format
Browse files Browse the repository at this point in the history
  • Loading branch information
oluwandabira committed Jan 19, 2020
2 parents 9b1de8b + 18a7bbc commit ef9a70f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion multiwallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func NewMultiWallet(rootDir, dbDriver, netType string) (*MultiWallet, error) {
}

rootDir = filepath.Join(rootDir, netType)
err = os.MkdirAll(rootDir, 0700)
err = os.MkdirAll(rootDir, os.ModePerm)
if err != nil {
return nil, errors.Errorf("failed to create rootDir: %v", err)
}
Expand Down
2 changes: 1 addition & 1 deletion utils/netparams.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ func ChainParams(netType string) (*chaincfg.Params, error) {
case strings.ToLower(testnetParams.Name):
return testnetParams, nil
default:
return nil, errors.New("net type must be either mainnet or testnet3")
return nil, errors.New("invalid net type")
}
}

0 comments on commit ef9a70f

Please sign in to comment.