mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-28 13:48:49 +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:
parent
12a85f565c
commit
98d588e8ef
@ -6,6 +6,7 @@
|
||||
|
||||
module Error exposing (handle)
|
||||
|
||||
import Debug
|
||||
import Http
|
||||
|
||||
|
||||
@ -25,4 +26,8 @@ handle error =
|
||||
"Bad status: " ++ String.fromInt code
|
||||
|
||||
Http.BadBody err ->
|
||||
err
|
||||
let
|
||||
_ =
|
||||
Debug.log "Bad body error: " err
|
||||
in
|
||||
"Invalid response body"
|
||||
|
Loading…
x
Reference in New Issue
Block a user