Skip to content

Commit

Permalink
add quote info to unknown error
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielBuragev committed Dec 10, 2024
1 parent 845e4fd commit 13916d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/swap/src/routes/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ export const handleQuotingError = (res: express.Response, err: unknown, info: Ad
logger.info('insufficient liquidity received', info);
throw ServiceError.badRequest('insufficient liquidity for requested amount');
}

logger.error('error while collecting quotes:', err);
logger.error('error while collecting quotes:', { error: err, info });

res.status(500).json({ message });
};

0 comments on commit 13916d9

Please sign in to comment.