Skip to content

Commit

Permalink
Merge pull request #354 from guy120494/master
Browse files Browse the repository at this point in the history
get message returns the error's message rather then toString()
  • Loading branch information
bbakerman committed Apr 4, 2017
2 parents f863c8f + 74a8afa commit 324ebc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/graphql/ExceptionWhileDataFetching.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public Throwable getException() {

@Override
public String getMessage() {
return "Exception while fetching data: " + exception.toString();
return "Exception while fetching data: " + exception.getMessage();
}

@Override
Expand Down

0 comments on commit 324ebc9

Please sign in to comment.