mirror of
https://github.com/go-i2p/i2pkeys.git
synced 2025-06-11 02:08:35 -04:00
return os.ErrNotExist instead of written error
This commit is contained in:
@ -88,7 +88,7 @@ func LoadKeys(r string) (I2PKeys, error) {
|
||||
}
|
||||
if !exists {
|
||||
log.WithError(err).Error("File does not exist")
|
||||
return I2PKeys{}, fmt.Errorf("file does not exist: %s", r)
|
||||
return I2PKeys{}, os.ErrNotExist
|
||||
}
|
||||
fi, err := os.Open(r)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user