Changeset: 88921c8c1d79 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=88921c8c1d79
Modified Files:
        gdk/gdk_bbp.c
Branch: Jun2016
Log Message:

Elaborated error message for incompatible database version.
This fixes bug 6068.


diffs (15 lines):

diff --git a/gdk/gdk_bbp.c b/gdk/gdk_bbp.c
--- a/gdk/gdk_bbp.c
+++ b/gdk/gdk_bbp.c
@@ -1224,7 +1224,10 @@ BBPheader(FILE *fp, oid *BBPoid, int *OI
            bbpversion != GDKLIBRARY_64_BIT_INT &&
            bbpversion != GDKLIBRARY_OLDWKB &&
            bbpversion != GDKLIBRARY_INSERTED) {
-               GDKfatal("BBPinit: incompatible BBP version: expected 0%o, got 
0%o.", GDKLIBRARY, bbpversion);
+               GDKfatal("BBPinit: incompatible BBP version: expected 0%o, got 
0%o.\n"
+                        "This database was probably created by %s version of 
MonetDB.",
+                        GDKLIBRARY, bbpversion,
+                        bbpversion > GDKLIBRARY ? "a newer" : "a too old");
        }
        if (fgets(buf, sizeof(buf), fp) == NULL) {
                GDKfatal("BBPinit: short BBP");
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to