pulsar-edit / package-backend

Pulsar Server Backend for Packages
https://api.pulsar-edit.dev
MIT License
12 stars 11 forks source link

Move specific error handling into error handler #106

Closed confused-Techie closed 1 year ago

confused-Techie commented 1 year ago

Requirements

Description of the Change

It seems that we previously had a bug within the code that could stop a user from being able to publish a new package.

Essentially, we attempted to handle a specific error returned outside of the generic error handler. Meaning that when there was no error, we wouldn't encounter the specific error handling we were looking for, and would always fail the request.

This PR moves the specific error handler within the overall original error handler, so that it can function as intended.

This was reported on GitHub.