Changeset: b1cdfbc4b257 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b1cdfbc4b257
Modified Files:
monetdb5/mal/mal_interpreter.c
Branch: default
Log Message:
Use the exception handler properly
diffs (15 lines):
diff --git a/monetdb5/mal/mal_interpreter.c b/monetdb5/mal/mal_interpreter.c
--- a/monetdb5/mal/mal_interpreter.c
+++ b/monetdb5/mal/mal_interpreter.c
@@ -323,9 +323,9 @@ str runMAL(Client cntxt, MalBlkPtr mb, M
if (env != NULL) {
stk = env;
if (mb != stk->blk)
- showScriptException(cntxt->fdout, mb, 0, MAL,
"runMAL:misalignment of symbols\n");
+ throw(MAL, "mal.interpreter","misalignment of symbols");
if (mb->vtop > stk->stksize)
- showScriptException(cntxt->fdout, mb, 0, MAL, "stack
too small\n");
+ throw(MAL, "mal.interpreter","stack too small");
initStack(env->stkbot);
} else {
stk = prepareMALstack(mb, mb->vsize);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list