Browse Source

Improve error logs

pull/3730/head
Thomas Kaul 12 months ago
parent
commit
4c492238a4
  1. 6
      apps/api/src/app/admin/admin.controller.ts

6
apps/api/src/app/admin/admin.controller.ts

@ -239,9 +239,11 @@ export class AdminController {
return { price };
}
throw new Error('Could not parse the current market price');
throw new Error(
`Could not parse the current market price for ${symbol} (${dataSource})`
);
} catch (error) {
Logger.error(error);
Logger.error(error, 'AdminController');
throw new HttpException(error.message, StatusCodes.BAD_REQUEST);
}

Loading…
Cancel
Save