prolike / GitLabelWizard

0 stars 0 forks source link

Feature - Add exception if something gone wrong #115

Open astyltsvig opened 5 years ago

astyltsvig commented 5 years ago

We need our function to throw exception either if: The label addition process have gone wrong The label deletion process have gone wrong

If the exception is thrown, then we must return 405(?) to the HTTP post request.

cph-lh commented 5 years ago

Might be useful: https://www.codingame.com/playgrounds/347/javascript-promises-mastering-the-asynchronous/the-catch-method