Changeset: c60b9e714c87 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c60b9e714c87
Modified Files:
        monetdb5/modules/mal/inspect.c
Branch: Jan2014
Log Message:

INSPECTgetEnvironmentKey(): return correct & useful error message
rather than an incorrect and misleading one


diffs (12 lines):

diff --git a/monetdb5/modules/mal/inspect.c b/monetdb5/modules/mal/inspect.c
--- a/monetdb5/modules/mal/inspect.c
+++ b/monetdb5/modules/mal/inspect.c
@@ -512,7 +512,7 @@ INSPECTgetEnvironmentKey(str *ret, str *
 {
        str s = GDKgetenv(*key);
        if (s == 0)
-               throw(MAL, "inspect.getEnvironment", MAL_MALLOC_FAIL);
+               throw(MAL, "inspect.getEnvironment", "environment variable '%s' 
not found", *key);
        *ret = GDKstrdup(s);
        return MAL_SUCCEED;
 }
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to