diff --git a/packages/node-dev/commands/build.ts b/packages/node-dev/commands/build.ts index 0952f07280..0ff4389200 100644 --- a/packages/node-dev/commands/build.ts +++ b/packages/node-dev/commands/build.ts @@ -49,9 +49,9 @@ export class Build extends Command { this.log(`The nodes got build and saved into the following folder:\n${outputDirectory}`); } catch (error) { - this.error('\nGOT ERROR'); - this.error('===================================='); - this.error(error.message); + this.log(`\nGOT ERROR: "${error.message}"`); + this.log('===================================='); + this.log(error.stack); return; } diff --git a/packages/node-dev/commands/new.ts b/packages/node-dev/commands/new.ts index 0a9124657c..5f721f0f16 100644 --- a/packages/node-dev/commands/new.ts +++ b/packages/node-dev/commands/new.ts @@ -152,9 +152,9 @@ export class New extends Command { this.log('Node got created: ' + destinationFilePath); } catch (error) { - this.error('\nGOT ERROR'); - this.error('===================================='); - this.error(error.message); + this.log(`\nGOT ERROR: "${error.message}"`); + this.log('===================================='); + this.log(error.stack); return; } }