Ghost/core/server/errors/maintenance.js
Katharina Irrgang 748c664b78 feature: maintenance mode (#7019)
closes #6976
- add maintenance mode when running migrations
- refactor update/populate migrations
2016-07-15 17:22:41 +01:00

12 lines
289 B
JavaScript

function Maintenance(message) {
this.message = message;
this.stack = new Error().stack;
this.statusCode = 503;
this.errorType = this.name;
}
Maintenance.prototype = Object.create(Error.prototype);
Maintenance.prototype.name = 'Maintenance';
module.exports = Maintenance;