Verified Commit b457c84b authored by Aral Balkan's avatar Aral Balkan
Browse files

Improve server launch error message

parent f85d0e3d
......@@ -217,7 +217,7 @@ function enable (args) {
const stdout = error.stdout.toString()
const errorMessage = stdout.slice(stdout.match(/❌.*?/).index)
console.log(`\n ❌ ${clr('❨site.js❩ Error:', 'red')} Server launch pre-flight check failed: \n `, errorMessage.replace('', ' '), '\n')
console.log(`\n ❌ ${clr('❨site.js❩ Error:', 'red')} Server launch failed: \n `, errorMessage.replace('', ' ').replace('❨site.js❩ Error: ', ''), '\n')
process.exit(1)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment