Hide db details on connection failure

This commit is contained in:
Joe Nelson
2014-12-22 15:40:35 -08:00
parent 0830772384
commit 30e9733719
+2 -1
View File
@@ -173,7 +173,8 @@ isSqlError = Just
sqlError :: H.Error -> Response
sqlError err =
let inside = case err of
H.CantConnect t -> t
H.CantConnect _ ->
"Message: \"Cannot connect to postgres server\""
H.ConnectionLost t -> t
H.ErroneousResult t -> t
H.UnexpectedResult t -> t