diff options
author | dim <dim@FreeBSD.org> | 2016-01-13 20:16:53 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2016-01-13 20:16:53 +0000 |
commit | 8835e379f2706b402e6fcf8f29211080dda9a89f (patch) | |
tree | 16095013fade50f57b5047b6a5c65b4abd91d0c2 /sys/boot/common/interp_forth.c | |
parent | 005d1ee2c86e8a2c1c538ec12e94d9b62551652d (diff) | |
parent | 86151baeba17ee7b385a179ee6b335c702e2cfe2 (diff) | |
download | FreeBSD-src-8835e379f2706b402e6fcf8f29211080dda9a89f.zip FreeBSD-src-8835e379f2706b402e6fcf8f29211080dda9a89f.tar.gz |
Merge ^/head r293686 through r293849.
Diffstat (limited to 'sys/boot/common/interp_forth.c')
-rw-r--r-- | sys/boot/common/interp_forth.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/boot/common/interp_forth.c b/sys/boot/common/interp_forth.c index 37b377b..7137d37 100644 --- a/sys/boot/common/interp_forth.c +++ b/sys/boot/common/interp_forth.c @@ -138,13 +138,23 @@ bf_command(FICL_VM *vm) } else { result=BF_PARSE; } + + switch (result) { + case CMD_CRIT: + printf("%s\n", command_errmsg); + break; + case CMD_FATAL: + panic("%s\n", command_errmsg); + } + free(line); /* * If there was error during nested ficlExec(), we may no longer have * valid environment to return. Throw all exceptions from here. */ - if (result != 0) + if (result != CMD_OK) vmThrow(vm, result); + /* This is going to be thrown!!! */ stackPushINT(vm->pStack,result); } |