summaryrefslogtreecommitdiffstats
path: root/java/com/google/gerrit/httpd/plugins/PluginServletContext.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/google/gerrit/httpd/plugins/PluginServletContext.java')
-rw-r--r--java/com/google/gerrit/httpd/plugins/PluginServletContext.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/java/com/google/gerrit/httpd/plugins/PluginServletContext.java b/java/com/google/gerrit/httpd/plugins/PluginServletContext.java
index 5a8fa31c25..5e875d7cc5 100644
--- a/java/com/google/gerrit/httpd/plugins/PluginServletContext.java
+++ b/java/com/google/gerrit/httpd/plugins/PluginServletContext.java
@@ -61,11 +61,11 @@ class PluginServletContext {
try {
handler = API.class.getDeclaredMethod(method.getName(), method.getParameterTypes());
} catch (NoSuchMethodException e) {
- String msg =
- String.format(
- "%s does not implement %s", PluginServletContext.class, method.toGenericString());
- logger.atSevere().withCause(e).log(msg);
- throw new NoSuchMethodError(msg);
+ throw new NoSuchMethodError(
+ String.format(
+ "%s does not implement %s",
+ PluginServletContext.class, method.toGenericString()))
+ .initCause(e);
}
return handler.invoke(this, args);
}