mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 19:08:26 +00:00
start and coolectivesettings
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
module Messages.Comp.HttpError exposing
|
||||
( de
|
||||
, gb
|
||||
, fr
|
||||
)
|
||||
|
||||
import Http
|
||||
@ -51,6 +52,24 @@ de err =
|
||||
errorToString texts err
|
||||
|
||||
|
||||
fr : Http.Error -> String
|
||||
fr err =
|
||||
let
|
||||
texts =
|
||||
{ badUrl = \url -> "Erreur avec l'url: " ++ url
|
||||
, timeout = "Délais d'attente réseau (timeout) expiré."
|
||||
, networkError = "Erreur de réseau"
|
||||
, invalidResponseStatus =
|
||||
\status ->
|
||||
"Status de réponse invalide: " ++ String.fromInt status ++ "."
|
||||
, invalidInput = "Entrée invalide pour traiter la requête"
|
||||
, notFound = "La ressource demandée n'existe pas."
|
||||
, invalidBody = \str -> "Erreur en décodant la réponse: " ++ str
|
||||
, accessDenied = "Accès refusé"
|
||||
}
|
||||
in
|
||||
errorToString texts err
|
||||
|
||||
|
||||
-- Error Utilities
|
||||
|
||||
|
Reference in New Issue
Block a user