🐛 Fix issue that errors in n8n-node-dev did not get displayed

This commit is contained in:
Jan Oberhauser 2019-09-20 07:54:13 +02:00
parent c1a609d358
commit 3762605610
2 changed files with 6 additions and 6 deletions

View file

@ -49,9 +49,9 @@ export class Build extends Command {
this.log(`The nodes got build and saved into the following folder:\n${outputDirectory}`); this.log(`The nodes got build and saved into the following folder:\n${outputDirectory}`);
} catch (error) { } catch (error) {
this.error('\nGOT ERROR'); this.log(`\nGOT ERROR: "${error.message}"`);
this.error('===================================='); this.log('====================================');
this.error(error.message); this.log(error.stack);
return; return;
} }

View file

@ -152,9 +152,9 @@ export class New extends Command {
this.log('Node got created: ' + destinationFilePath); this.log('Node got created: ' + destinationFilePath);
} catch (error) { } catch (error) {
this.error('\nGOT ERROR'); this.log(`\nGOT ERROR: "${error.message}"`);
this.error('===================================='); this.log('====================================');
this.error(error.message); this.log(error.stack);
return; return;
} }
} }