Skip to content

Commit

Permalink
fix: providerAsMiddlware
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptodev-2s committed Jul 18, 2024
1 parent 73df843 commit 39a1c30
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/providerAsMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ export function providerAsMiddleware(
end();
})
.catch((error) => {
end(error);
if (error instanceof Error) {
end(error);
} else {
end();
}
});
};
}
Expand Down

0 comments on commit 39a1c30

Please sign in to comment.