Skip to content

Commit

Permalink
Merge pull request #122 from rstata/rstata-msgfix
Browse files Browse the repository at this point in the history
Try.getThrowable - fixed incorrect exception message
  • Loading branch information
bbakerman committed Sep 12, 2022
2 parents 59b26b8 + e5485ad commit 08559ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/dataloader/Try.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public V get() {
*/
public Throwable getThrowable() {
if (isSuccess()) {
throw new UnsupportedOperationException("You have called Try.getThrowable() with a failed Try", throwable);
throw new UnsupportedOperationException("You have called Try.getThrowable() with a successful Try");
}
return throwable;
}
Expand Down

0 comments on commit 08559ba

Please sign in to comment.