Changeset: bcca640f8a67 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/bcca640f8a67
Modified Files:
        sql/backends/monet5/vaults/json/json.c
Branch: nested
Log Message:

Add the errno msg in error msg if open or stat are failing for json


diffs (18 lines):

diff --git a/sql/backends/monet5/vaults/json/json.c 
b/sql/backends/monet5/vaults/json/json.c
--- a/sql/backends/monet5/vaults/json/json.c
+++ b/sql/backends/monet5/vaults/json/json.c
@@ -51,12 +51,12 @@ json_open(const char *fname, allocator *
        int fd = MT_open(fname, O_RDONLY);
        if (fd < 0){
                // TODO add relevant trace component
-               TRC_ERROR(SQL_EXECUTION, "Error opening file %s", fname);
+               TRC_ERROR(SQL_EXECUTION, "Error opening file %s: %s", fname, 
strerror(errno));
                return NULL;
        }
        struct stat stb;
     if (MT_stat(fname, &stb) != 0) {
-               TRC_ERROR(SQL_EXECUTION, "Error stat file %s", fname);
+               TRC_ERROR(SQL_EXECUTION, "Error stat file %s: %s", fname, 
strerror(errno));
                close(fd);
                return NULL;
        }
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to