From e6ba9e5849287fbd2988ae428c98dac525f92dcc Mon Sep 17 00:00:00 2001 From: Matt Holt Date: Fri, 11 Mar 2016 08:21:01 -0700 Subject: [PATCH] Change ErrNoKeyFound message For #438. I was just going to change it to "wrong password" but then I saw that it might actually be the case that no key could be found, so I changed it to what I did. Let me know if you'd like something different! --- src/restic/repository/key.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/restic/repository/key.go b/src/restic/repository/key.go index 42c5a591a..0a3dfe58e 100644 --- a/src/restic/repository/key.go +++ b/src/restic/repository/key.go @@ -16,7 +16,7 @@ import ( var ( // ErrNoKeyFound is returned when no key for the repository could be decrypted. - ErrNoKeyFound = errors.New("no key could be found") + ErrNoKeyFound = errors.New("wrong password or no key found") ) // TODO: figure out scrypt values on the fly depending on the current