mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
exit after catching a Rhino exception (#325)
This commit is contained in:
parent
f85a74d9fe
commit
41f538feb9
1
jsdoc.js
1
jsdoc.js
@ -281,6 +281,7 @@ catch(e) {
|
|||||||
env.run.finish = new Date();
|
env.run.finish = new Date();
|
||||||
if (e.rhinoException != null) {
|
if (e.rhinoException != null) {
|
||||||
e.rhinoException.printStackTrace();
|
e.rhinoException.printStackTrace();
|
||||||
|
process.exit(1);
|
||||||
} else {
|
} else {
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user