fd0f5a5028
closes #2690 - added new error classes - moved errorhandling.js to /errors/index.js - changed API errors to use new classes - updated tests
10 lines
263 B
JavaScript
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);
|
|
}); |