From 1ccc7b11337fdffcd5ce31dbed4f37779a523aa6 Mon Sep 17 00:00:00 2001 From: Andrey Kuzmin Date: Sun, 24 Dec 2017 15:24:19 +0300 Subject: [PATCH] Dont output malformed error body --- ui/app/src/Utils/Api.elm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/src/Utils/Api.elm b/ui/app/src/Utils/Api.elm index f6f799ed..4da49e5d 100644 --- a/ui/app/src/Utils/Api.elm +++ b/ui/app/src/Utils/Api.elm @@ -33,7 +33,7 @@ errorToString err = BadStatus resp -> parseError resp.body - |> Maybe.withDefault (resp.status.message ++ " " ++ resp.body) + |> Maybe.withDefault (toString resp.status.code ++ " " ++ resp.status.message) BadPayload err resp -> -- OK status, unexpected payload