Skip to content

Commit

Permalink
Log Mattermost notifier exception
Browse files Browse the repository at this point in the history
  • Loading branch information
florimondmanca committed Dec 4, 2024
1 parent 55cf0db commit fbc2405
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Infrastructure/Adapter/MattermostNotifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class MattermostNotifier implements IMattermostNotifier {

return response.data;
} catch (e) {
throw BadGatewayException;
throw new BadGatewayException(e);
}
}

Expand All @@ -55,12 +55,10 @@ export class MattermostNotifier implements IMattermostNotifier {
}
);

console.log(response.data);

return response.data;
} catch (e) {
console.log('--error: ', e);
throw BadGatewayException;
console.error('--error: ', e);
throw new BadGatewayException(e);
}
}

Expand All @@ -87,7 +85,7 @@ export class MattermostNotifier implements IMattermostNotifier {

return response.data;
} catch (e) {
throw BadGatewayException;
throw new BadGatewayException(e);
}
}
}

0 comments on commit fbc2405

Please sign in to comment.