X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/9d31a6711605cd4ebea09ca1675e2549b706ba5b..93b9288c3051dd828b16532cac9db87964587afb:/nominatim/result_formatter/v1.py diff --git a/nominatim/result_formatter/v1.py b/nominatim/result_formatter/v1.py index 081f451e..6d25ce6c 100644 --- a/nominatim/result_formatter/v1.py +++ b/nominatim/result_formatter/v1.py @@ -18,7 +18,10 @@ create = FormatDispatcher() @create.format_func(StatusResult, 'text') def _format_status_text(result: StatusResult) -> str: - return result.message + if result.status: + return f"ERROR: {result.message}" + + return 'OK' @create.format_func(StatusResult, 'json')