Exit with failure code on error

Mon, 24 May 2010 13:42:34 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 24 May 2010 13:42:34 +0100
changeset 44
f5244bce28ce
parent 43
ecfa7896af35
child 46
33ae4e0de8cc

Exit with failure code on error

lvm.js file | annotate | diff | comparison | revisions
--- a/lvm.js	Mon May 24 12:55:03 2010 +0100
+++ b/lvm.js	Mon May 24 13:42:34 2010 +0100
@@ -479,4 +479,5 @@
 	print("Error: " + e);
 	if(typeof(e) == "object" && "stack" in e)
 		print(e.stack);
+	process.exit(1);
 }

mercurial