Closed jasonkuhrt closed 10 years ago
A build error would be helpful but only given these conditions:
--watch
. Think how node-dev
works.Neither of the above is currently true.
+1 for doesn't interrupt --watch
, it's pretty annoying
+1 I suppose when using --watch
and the file have syntax error, show the error instead of break down the process.
+1 these can be pretty difficult to debug.
Yup, I just lost half an hour because of a missing parenthesis. Anybody knows where to add the error handling for this?
If you end up here, you might want to change https://github.com/component/console.js/blob/master/index.js#L29
to err = err.stack || err;
and your life will be a whole lot better.
@karlbohlmark works great thanks.
@karlbohlmark you should make a PR
issue is fixed by using utils.error()
instead of utils.fatal()
and the the version of https://github.com/componentjs/console.js now checks if there is a err.stack
furthermore if an error occurs, previous generated file(s) will be deleted
Given a file e.g. foobar.js, literally containing a syntax error such as:
or
or
or etc.
causes
component build
to freak out:with very little explanation about what's going on.