Skip to content

Commit

Permalink
Print some stacktraces to STDERR in case the Groovy script doesn't pa…
Browse files Browse the repository at this point in the history
…rse right and we can't dispatch to the Groovy-defined error handlers.
  • Loading branch information
jbrisbin committed Apr 12, 2010
1 parent 524b128 commit 532ae4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -6,7 +6,7 @@

<groupId>com.jbrisbin</groupId>
<artifactId>rabbitmq-dsl</artifactId>
<version>1.0.1</version>
<version>1.1.0</version>
<name>RabbitMQ Groovy DSL</name>

<properties>
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/jbrisbin/groovy/mqdsl/RabbitMQDsl.java
Expand Up @@ -159,6 +159,8 @@ public static void main(String[] argv) {
shell.evaluate(new StringReader(script.toString()));
} catch (Throwable t) {
builder.dispatchError(t);
// Doesn't do much good to dispatch into a script that has a syntax error, so...
t.printStackTrace();
}

while (builder.isActive()) {
Expand Down

0 comments on commit 532ae4a

Please sign in to comment.