Ghost/index.js
Sebastian Gierlinger fd0f5a5028 Add distinct error classes
closes #2690
- added new error classes
- moved errorhandling.js to /errors/index.js
- changed API errors to use new classes
- updated tests
2014-05-09 12:11:29 +02:00

10 lines
263 B
JavaScript

// # Ghost bootloader
// Orchestrates the loading of Ghost
// When run from command line.
var ghost = require('./core'),
errors = require('./core/server/errors');
ghost().otherwise(function (err) {
errors.logErrorAndExit(err, err.context, err.help);
});