Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tysmith committed Jan 8, 2024
1 parent 3c46ee7 commit 54b04f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions grizzly/common/fuzzmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,7 @@ def create_signature(self, binary):
)
fm_sig = fm_crash.createCrashSignature()
if fm_sig is None:
raise RuntimeError(
"Failed to generate signature from crash data: "
f"{fm_crash.failureReason}"
)
raise RuntimeError(str(fm_crash.failureReason))
sig_filename.write_text(fm_sig.rawSignature)

sigmeta_filename = sig_filename.with_suffix(".metadata")
Expand Down
2 changes: 1 addition & 1 deletion grizzly/common/test_fuzzmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def test_crash_5(mocker):
with raises(RuntimeError) as exc:
with CrashEntry(123) as crash:
crash.create_signature(None)
assert "failed to generate" in str(exc).lower()
assert "insufficient data to generate" in str(exc).lower()
assert coll.return_value.get.call_count == 1


Expand Down

0 comments on commit 54b04f4

Please sign in to comment.