Changeset: 0853d2a5b90c for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0853d2a5b90c
Modified Files:
monetdb5/mal/mal_exception.c
Branch: default
Log Message:
When error is GDK_EXCEPTION, report the GDK exception.
diffs (19 lines):
diff --git a/monetdb5/mal/mal_exception.c b/monetdb5/mal/mal_exception.c
--- a/monetdb5/mal/mal_exception.c
+++ b/monetdb5/mal/mal_exception.c
@@ -109,6 +109,15 @@ createException(enum malexception type,
GDKclrerr();
return ret;
}
+ if (strcmp(format, GDK_EXCEPTION) == 0 && GDKerrbuf[0]) {
+ /* for GDK errors, report the underlying error */
+ char *p = GDKerrbuf;
+ if (strncmp(p, GDKERROR, strlen(GDKERROR)) == 0)
+ p += strlen(GDKERROR);
+ ret = createException(type, fcn, "GDK reported error: %s", p);
+ GDKclrerr();
+ return ret;
+ }
va_start(ap, format);
ret = createExceptionInternal(type, fcn, format, ap);
va_end(ap);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list