summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdwin Kempin <ekempin@google.com>2019-03-11 10:25:47 +0100
committerDavid Pursehouse <dpursehouse@collab.net>2019-03-12 10:21:36 +0000
commitf3db4fee35c232a9a681f4b90aa2c515c4d4a3b6 (patch)
treeccbbe76e29f2455431f8ae7ab3ebd2319befbdcb
parent55e5067038822522e98e7e2c2512fd5f4808fcdb (diff)
AccountsImpl: Fix exception message if account cannot be parsed
Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: Icc23e19e1e7237368b3238690827c4ec8e5f5bfd (cherry picked from commit d5a590379cd15907c857d4b9afd293738beabb10)
-rw-r--r--java/com/google/gerrit/server/api/accounts/AccountsImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/google/gerrit/server/api/accounts/AccountsImpl.java b/java/com/google/gerrit/server/api/accounts/AccountsImpl.java
index 5a30113f14..9d298884b8 100644
--- a/java/com/google/gerrit/server/api/accounts/AccountsImpl.java
+++ b/java/com/google/gerrit/server/api/accounts/AccountsImpl.java
@@ -69,7 +69,7 @@ public class AccountsImpl implements Accounts {
try {
return api.create(accounts.parse(TopLevelResource.INSTANCE, IdString.fromDecoded(id)));
} catch (Exception e) {
- throw asRestApiException("Cannot parse change", e);
+ throw asRestApiException("Cannot parse account", e);
}
}