mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Replace GhostError with InternalServerError
no issue @tryghost/errors no longer exports GhostError, as we should only be using subclasses. Replace with InternalServerError as a new default, but should be replaced with a relevant error when one exists.
This commit is contained in:
parent
76f06fae3c
commit
80a385ef0c
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
const {NotFoundError, GhostError} = require('@tryghost/errors');
|
||||
const {NotFoundError, InternalServerError} = require('@tryghost/errors');
|
||||
const tpl = require('@tryghost/tpl');
|
||||
|
||||
const messages = {
|
||||
|
@ -29,7 +29,7 @@ class IntegrationsService {
|
|||
withRelated: ['api_keys', 'webhooks']
|
||||
});
|
||||
} catch (err) {
|
||||
throw new GhostError({
|
||||
throw new InternalServerError({
|
||||
err: err
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue