1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-04-29 13:49:28 +08:00

NOISSUE - Remove debugging message from response of handle error function (#696)

* Remove debugging message from response of handle error function

Signed-off-by: Ivan Milošević <iva@blokovi.com>

* Print error in debug console in case of bad body HTTP response

Signed-off-by: Ivan Milošević <iva@blokovi.com>
This commit is contained in:
Ivan Milošević 2019-04-08 13:44:11 +02:00 committed by Drasko DRASKOVIC
parent 12a85f565c
commit 98d588e8ef

View File

@ -6,6 +6,7 @@
module Error exposing (handle) module Error exposing (handle)
import Debug
import Http import Http
@ -25,4 +26,8 @@ handle error =
"Bad status: " ++ String.fromInt code "Bad status: " ++ String.fromInt code
Http.BadBody err -> Http.BadBody err ->
err let
_ =
Debug.log "Bad body error: " err
in
"Invalid response body"