mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #10360 from dmcgowan/keyfile-error-message
Add file path to errors loading the key file
This commit is contained in:
commit
e15300b251
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ func LoadOrCreateTrustKey(trustKeyPath string) (libtrust.PrivateKey, error) {
|
||||||
return nil, fmt.Errorf("Error saving key file: %s", err)
|
return nil, fmt.Errorf("Error saving key file: %s", err)
|
||||||
}
|
}
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
return nil, fmt.Errorf("Error loading key file: %s", err)
|
return nil, fmt.Errorf("Error loading key file %s: %s", trustKeyPath, err)
|
||||||
}
|
}
|
||||||
return trustKey, nil
|
return trustKey, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue