From 3f58387b1c55f81f46d56c28a861153b16f5834a Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Thu, 15 Oct 2026 17:10:07 +0200 Subject: [PATCH] Improve log message and JSDoc of search by ISIN --- .../financial-modeling-prep.service.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/api/src/services/data-provider/financial-modeling-prep/financial-modeling-prep.service.ts b/apps/api/src/services/data-provider/financial-modeling-prep/financial-modeling-prep.service.ts index 70a4ba2e1d..c85249db33 100644 --- a/apps/api/src/services/data-provider/financial-modeling-prep/financial-modeling-prep.service.ts +++ b/apps/api/src/services/data-provider/financial-modeling-prep/financial-modeling-prep.service.ts @@ -542,7 +542,8 @@ export class FinancialModelingPrepService * ISIN has no currency and no asset class, thus they are taken from the * profile of the symbol only, without the further requests of an asset * profile, for example the holdings of an ETF. A failed request of a profile - * gives a result without a currency and without an asset class. + * gives a result without a currency and without an asset class, which the + * caller removes unless indices are included. */ public async search({ includeIndices = false, @@ -581,7 +582,9 @@ export class FinancialModelingPrepService }; }) .catch((error) => { - this.logger.error(error); + this.logger.error( + `Could not get the profile of ${symbol} (${this.getName()}): [${error?.name}] ${error?.message}` + ); }); }) );