Feature/improve error logs in scraper configuration test (#3730)

* Improve error logs

* Update changelog
This commit is contained in:
Thomas Kaul
2024-09-05 18:21:32 +02:00
committed by GitHub
parent 7ea9061852
commit fb44933c9c
2 changed files with 5 additions and 2 deletions

View File

@@ -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);
}