remove PayloadError and switched to APIError where it was used, set res status where possible and some fixed eslint issues

This commit is contained in:
Dan Ribbens
2019-12-23 16:54:27 -05:00
parent 8f0426fbc8
commit ae9e2c3470
20 changed files with 55 additions and 56 deletions

View File

@@ -19,7 +19,7 @@ class ExtendableError extends Error {
* Class representing an API error.
* @extends ExtendableError
*/
class APIError extends ExtendableError {
export class APIError extends ExtendableError {
/**
* Creates an API error.
* @param {string} message - Error message.
@@ -30,5 +30,3 @@ class APIError extends ExtendableError {
super(message, status, isPublic);
}
}
module.exports = APIError;