diff options
author | Eric Haszlakiewicz <erh+git@nimenees.com> | 2013-06-29 15:31:18 -0500 |
---|---|---|
committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2013-06-29 15:31:18 -0500 |
commit | b3bce4d5943774b59d7fa653da89f48db70d013e (patch) | |
tree | 2bf4dcf193c78d4d19d805c43bb7df7800316ebe /json_util.c | |
parent | be002fbb96c484f89aee2c843b89bdd00b0a5e46 (diff) | |
download | json-c-b3bce4d5943774b59d7fa653da89f48db70d013e.tar.gz |
Eliminate use of MC_ABORT in json-c code, and mark MC_ABORT/mc_abort deprecated.
Also adjust an error message in json_util to make it unique. Fixes #87.
Diffstat (limited to 'json_util.c')
-rw-r--r-- | json_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/json_util.c b/json_util.c index d62d54e..cab2f1e 100644 --- a/json_util.c +++ b/json_util.c @@ -73,7 +73,7 @@ struct json_object* json_object_from_file(const char *filename) int fd, ret; if((fd = open(filename, O_RDONLY)) < 0) { - MC_ERROR("json_object_from_file: error reading file %s: %s\n", + MC_ERROR("json_object_from_file: error opening file %s: %s\n", filename, strerror(errno)); return NULL; } @@ -87,7 +87,7 @@ struct json_object* json_object_from_file(const char *filename) } close(fd); if(ret < 0) { - MC_ABORT("json_object_from_file: error reading file %s: %s\n", + MC_ERROR("json_object_from_file: error reading file %s: %s\n", filename, strerror(errno)); printbuf_free(pb); return NULL; |