We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4073050 commit 90e2539Copy full SHA for 90e2539
approvaltests/src/main/java/org/approvaltests/approvers/FileApprover.java
@@ -58,8 +58,11 @@ public VerifyResult reportFailure(ApprovalFailureReporter reporter)
58
}
59
public void fail()
60
{
61
- throw new Error(String.format("Failed Approval\n Approved:%s\n Received:%s", approved.getAbsolutePath(),
62
- received.getAbsolutePath()));
+ throw createError(received.getAbsolutePath(), approved.getAbsolutePath());
+ }
63
+ private static Error createError(String received, String approved)
64
+ {
65
+ return new Error(String.format("Failed Approval\n Approved:%s\n Received:%s", approved, received));
66
67
public static VerifyResult approveTextFile(File received, File approved)
68
0 commit comments