diff --git a/src/main/java/com/google/acai/GuiceberryCompatibilityModule.java b/src/main/java/com/google/acai/GuiceberryCompatibilityModule.java index dd21088..4ebeccd 100644 --- a/src/main/java/com/google/acai/GuiceberryCompatibilityModule.java +++ b/src/main/java/com/google/acai/GuiceberryCompatibilityModule.java @@ -100,7 +100,8 @@ private static void invokeIfBound(Injector injector, MethodReference method) thr } catch (InvocationTargetException e) { throw e.getCause(); } catch (ReflectiveOperationException e) { - throw new RuntimeException("Failed to invoke run on GuiceBerryEnvMain", e); + throw new RuntimeException( + "Failed to invoke " + method.methodName() + " on " + method.className(), e); } }