Skip to content

Commit

Permalink
fix: added error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
H34D committed Apr 2, 2024
1 parent d777dc1 commit 23f2e6e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/modules/token/swap.ts
Expand Up @@ -118,8 +118,10 @@ export const getSwapQuote = async (
gasLimit,
transactionCost,
};
} catch {
console.error("Failed to quote send!");
} catch (error: unknown) {
if (error instanceof Error) {
console.error(`Failed to quote send! ${error.message}`);
}
}
};

Expand Down

0 comments on commit 23f2e6e

Please sign in to comment.