Return 1 to shell on error

db4
Doug Coleman 2007-12-18 16:59:03 -06:00
parent 54be2b85f5
commit de7531424b
1 changed files with 6 additions and 4 deletions

View File

@ -67,10 +67,12 @@ IN: bootstrap.stage2
[
boot
do-init-hooks
[ parse-command-line ] try
[ run-user-init ] try
[ "run" get run ] try
stdio get [ stream-flush ] when*
[
parse-command-line
run-user-init
"run" get run
stdio get [ stream-flush ] when*
] [ print-error 1 exit ] recover
] set-boot-quot
: count-words all-words swap subset length pprint ;