Skip to content

Commit

Permalink
fix: throw AssertionError instead of Error in case of approval failure
Browse files Browse the repository at this point in the history
  • Loading branch information
nicerloop committed Nov 29, 2024
1 parent 15b5c34 commit 901869e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public VerifyResult reportFailure(ApprovalFailureReporter reporter)
}
public void fail()
{
throw new Error(String.format("Failed Approval\n Approved:%s\n Received:%s", approved.getAbsolutePath(),
throw new AssertionError(String.format("Failed Approval\n Approved:%s\n Received:%s", approved.getAbsolutePath(),
received.getAbsolutePath()));
}
public static VerifyResult approveTextFile(File received, File approved)
Expand Down

0 comments on commit 901869e

Please sign in to comment.