X-Git-Url: https://vcs.fsf.org/?p=exim.git;a=blobdiff_plain;f=src%2Fsrc%2Flookups%2Fjson.c;h=5fe1f1c5d5a90770f6d25eb6a4ffd7f5a631e6d9;hp=013013ae808aac535fdaa81b0432093456e12f80;hb=9669c6e06fa8441557a70ba0759eda19287681ad;hpb=11b31159ac7d1acef923c29053fc3d9c6bbf5c12 diff --git a/src/src/lookups/json.c b/src/src/lookups/json.c index 013013ae8..5fe1f1c5d 100644 --- a/src/src/lookups/json.c +++ b/src/src/lookups/json.c @@ -69,8 +69,8 @@ do_cache = do_cache; /* Keep picky compilers happy */ rewind(f); if (!(j = json_loadf(f, 0, &jerr))) { - enum json_error_code je = json_error_code(&jerr); - *errmsg = string_sprintf("json err %d on open", je); + *errmsg = string_sprintf("json error on open: %.*s\n", + JSON_ERROR_TEXT_LENGTH, jerr.text); return FAIL; } j0 = j;