Skip to content

Commit 08559ba

Browse files
authored
Merge pull request #122 from rstata/rstata-msgfix
Try.getThrowable - fixed incorrect exception message
2 parents 59b26b8 + e5485ad commit 08559ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/dataloader/Try.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public V get() {
167167
*/
168168
public Throwable getThrowable() {
169169
if (isSuccess()) {
170-
throw new UnsupportedOperationException("You have called Try.getThrowable() with a failed Try", throwable);
170+
throw new UnsupportedOperationException("You have called Try.getThrowable() with a successful Try");
171171
}
172172
return throwable;
173173
}

0 commit comments

Comments
 (0)