mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -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 tpl = require('@tryghost/tpl');
|
||||||
|
|
||||||
const messages = {
|
const messages = {
|
||||||
|
@ -29,7 +29,7 @@ class IntegrationsService {
|
||||||
withRelated: ['api_keys', 'webhooks']
|
withRelated: ['api_keys', 'webhooks']
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
throw new GhostError({
|
throw new InternalServerError({
|
||||||
err: err
|
err: err
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue