1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-19 10:37:01 +00:00

ui: Make the error flash look nice

This commit is contained in:
James Hillyerd
2018-12-15 21:17:37 -08:00
parent af3ed04100
commit ffaf296faa
3 changed files with 21 additions and 8 deletions

View File

@@ -63,8 +63,8 @@ errorFlash error =
{ flash
| table =
flash.table
++ [ ( "Method", error.request.method )
, ( "URL", error.request.url )
++ [ ( "Request URL", error.request.url )
, ( "HTTP Method", error.request.method )
]
}
in
@@ -92,7 +92,7 @@ errorFlash error =
Http.BadBody body ->
{ title = "Bad HTTP body"
, table = [ ( "Body", body ) ]
, table = [ ( "Error", body ) ]
}