mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-28 11:08:27 +00:00
Externalize error messages
This commit is contained in:
@ -19,7 +19,8 @@ type alias Model =
|
||||
|
||||
type State
|
||||
= Empty
|
||||
| Failed String
|
||||
| Failed Http.Error
|
||||
| GenericFail String
|
||||
| Success InviteResult
|
||||
|
||||
|
||||
@ -29,6 +30,9 @@ isFailed state =
|
||||
Failed _ ->
|
||||
True
|
||||
|
||||
GenericFail _ ->
|
||||
True
|
||||
|
||||
_ ->
|
||||
False
|
||||
|
||||
|
Reference in New Issue
Block a user