Changeset: a20ff0602477 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a20ff0602477
Modified Files:
        monetdb5/mal/mal_factory.c
Branch: Feb2013
Log Message:

Use MAL expection instead of assert
When you can continue the session.


diffs (13 lines):

diff --git a/monetdb5/mal/mal_factory.c b/monetdb5/mal/mal_factory.c
--- a/monetdb5/mal/mal_factory.c
+++ b/monetdb5/mal/mal_factory.c
@@ -345,7 +345,8 @@ runFactory(Client cntxt, MalBlkPtr mb, M
        pl->inuse = 1;
        /* inherit debugging */
        cmd = stk->cmd;
-       assert(pl->stk != NULL); /* we should have a stack to run against */
+       if ( pl->stk == NULL)
+                       throw(MAL, "factory.new", "internal error, stack frame 
missing");
 
        /* copy the calling arguments onto the stack
           of the factory */
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to