Adding better error logs for ntfy client
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
collin 2026-04-19 22:45:54 +02:00
parent a85f743be4
commit 7fe76186c7

View file

@ -41,7 +41,7 @@ export class NtfyClient {
throw new Error(`${response.status} - ${response.statusText}`) throw new Error(`${response.status} - ${response.statusText}`)
} }
} catch (error: unknown) { } 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) })
} }
} }
} }