mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
748c664b78
closes #6976 - add maintenance mode when running migrations - refactor update/populate migrations
11 lines
289 B
JavaScript
11 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;
|