mojira / mojira-discord-bot

🎮 A Discord bot for linking to and providing information about Mojira tickets
https://discord.gg/rpCyfKV
GNU General Public License v3.0
19 stars 9 forks source link

Shorten Jira error messages #214

Closed dericksonmark closed 2 years ago

dericksonmark commented 3 years ago

Purpose

Fixes #212.

Approach

This changes the error message in Task.ts, FilterFeedTask.ts, and VersionFeedTask.ts to be only four lines long. These four lines include the status code, status text, and error messages (some of these may not be defined).

These error messages used to be over 300 lines each.

The changes here don't affect other Jira error messages besides these three, but these are the errors that are causing the most spam when the bot can't connect to Jira.

Here is an example of a shortened error message.

Screen Shot 2021-06-01 at 11 35 53 PM
dericksonmark commented 3 years ago

I think I've added a LoggerUtil properly, so I'll mark this pull request as ready for review.