Commit fd439ecd authored by Lubomir Bulej's avatar Lubomir Bulej

SCGenerator: be more specific when reporting failure of static context method invocation.

parent f52df776
......@@ -137,11 +137,10 @@ public class SCGenerator {
return method.invoke (staticContext);
} catch (final Exception e) {
final String message = String.format (
"Invocation of static context method %s failed",
method.getName ()
throw new StaticContextGenException (
e, "Invocation of static context method %s.%s failed",
method.getDeclaringClass ().getName (), method.getName ()
throw new StaticContextGenException (message, e);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment