Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Add error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
gastonyelmini committed Jul 3, 2024
1 parent 5639077 commit 6800406
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/configuration-manager/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,12 @@ class MicrosoftConfigurationManagerClient {

private async wrapWithRequestFailedHandler<TResponse>(
fn: () => Promise<TResponse>,
logger?: IntegrationLogger,
) {
try {
return await fn();
} catch (err) {
logger?.error(`Received error from SQL query: ${err}`);
throw this.onRequestFailed(err);
}
}
Expand Down

0 comments on commit 6800406

Please sign in to comment.