Skip to content

Commit 42e69bb

Browse files
committed
Fixing a lost cause for an exception path
1 parent b15c759 commit 42e69bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hamcrest/src/main/java/org/hamcrest/beans/HasPropertyWithValue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public Condition<Object> apply(Method readMethod, Description mismatch) {
124124
return notMatched();
125125
} catch (Exception e) {
126126
throw new IllegalStateException(
127-
"Calling: '" + readMethod + "' should not have thrown " + e);
127+
"Calling: '" + readMethod + "' should not have thrown", e);
128128
}
129129
}
130130
};

0 commit comments

Comments
 (0)