eexit/ghost-storage-cloudinary

View on GitHub
errors.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
'use strict';

const _ = require('lodash'),
    GhostInternalError = require('@tryghost/errors').InternalServerError;

module.exports = {
    CloudinaryAdapterError: class CloudinaryAdapterError extends GhostInternalError {
        constructor(options) {
            super(_.merge({
                errorType: 'ImageStorageAdapterError',
                message: 'An error has occurred while handling image storage.',
                level: 'error'
            }, options));
        }
    }
};