@adonisjs/ignitor
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -0,1 +1,6 @@ | ||
<a name="2.0.1"></a> | ||
## [2.0.1](https://github.com/adonisjs/adonis-ignitor/compare/v2.0.0...v2.0.1) (2018-02-07) | ||
<a name="2.0.0"></a> | ||
@@ -2,0 +7,0 @@ # [2.0.0](https://github.com/adonisjs/adonis-ignitor/compare/v1.0.14...v2.0.0) (2018-01-31) |
{ | ||
"name": "@adonisjs/ignitor", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Fire the adonis-app (in good sense)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -435,2 +435,18 @@ 'use strict' | ||
/** | ||
* Pretty prints the error to the terminal | ||
* | ||
* @method _printError | ||
* | ||
* @param {Object} error | ||
* | ||
* @return {void} | ||
* | ||
* @private | ||
*/ | ||
async _printError (error) { | ||
const output = await new Youch(error, {}).toJSON() | ||
console.log(forTerminal(output)) | ||
} | ||
/** | ||
* Start the http server using server and env | ||
@@ -472,3 +488,8 @@ * provider | ||
*/ | ||
Server.listen(Env.get('HOST'), Env.get('PORT'), () => { | ||
Server.listen(Env.get('HOST'), Env.get('PORT'), (error) => { | ||
if (error) { | ||
this._printError(error) | ||
return | ||
} | ||
if (typeof (process.emit) === 'function') { | ||
@@ -506,6 +527,3 @@ process.emit('adonis:server:start') | ||
*/ | ||
ace.onError(async (error) => { | ||
const output = await new Youch(error, {}).toJSON() | ||
console.log(forTerminal(output)) | ||
}) | ||
ace.onError((error) => (this._printError(error))) | ||
@@ -512,0 +530,0 @@ ace.invoke({ version: this._packageFile['adonis-version'] || 'NA' }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38210
1060