UniBO-PRISMLab / wam

WoT Application Manager - a command line interface to build a Web of Things application for https://github.com/eclipse/thingweb.node-wot
MIT License
15 stars 4 forks source link

Lifecycle error on Exit #1

Open relu91 opened 5 years ago

relu91 commented 5 years ago

If the user force exits (using sigint, ctrl-c) while aswering inquirer questions the program exits with status 1 causing the following message:

npm ERR! errno 1
npm ERR! @arces-wot/wade@0.1.0 start: `ts-node src/wade.ts "init" "../testWade/"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @arces-wot/wade@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\reluc\AppData\Roaming\npm-cache\_logs\2019-10-30T17_24_11_467Z-debug.log

The intended behavior should be a clean exit.

relu91 commented 4 years ago

It seems that the error is only thrown when wam runs with ts-node. It should not affect the final user.