X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/11b31159ac7d1acef923c29053fc3d9c6bbf5c12..9669c6e06f:/src/src/lookups/json.c 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;