diff --git a/src/ntfy/client.ts b/src/ntfy/client.ts index befa5d1..7ef3c56 100644 --- a/src/ntfy/client.ts +++ b/src/ntfy/client.ts @@ -41,7 +41,7 @@ export class NtfyClient { throw new Error(`${response.status} - ${response.statusText}`) } } catch (error: unknown) { - this.loggerService.error('ntfy client failed', { error }) + this.loggerService.error('ntfy client failed', { error: error instanceof Error ? error.message : JSON.stringify(error) }) } } }