Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Nov 19, 2024
1 parent 47653c1 commit cb9515b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ export function errorSnapshot(header: string, err: any): string {
if (err.name) message.push("Error: " + err.name);
if (err.details) {
message.push("Details: " + err.details);
if (err.details.includes("unknown reason")) {
if (
err.name.includes("unknown reason") ||
err.details.includes("unknown reason") ||
err.shortMessage.includes("unknown reason")
) {
const { raw, decoded } = parseRevertError(err);
if (decoded) {
message.push("Error Name: " + decoded.name);
Expand Down

0 comments on commit cb9515b

Please sign in to comment.