summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2017-10-19 13:30:40 +0200 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2017-10-19 13:30:40 +0200 |
commit | e008855086d124f0de14eacc858ecb57d23e371c (patch) | |
tree | e3fe94dcf2966d17ac970b4b9cbbf6998c1f34a6 /elm/battlemap/src/Error.elm | |
parent | ab299e08cee6ee9b2b122ce87b9bdab3b0dd637c (diff) |
Starting a more modular approach for the website.
Diffstat (limited to 'elm/battlemap/src/Error.elm')
-rw-r--r-- | elm/battlemap/src/Error.elm | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/elm/battlemap/src/Error.elm b/elm/battlemap/src/Error.elm deleted file mode 100644 index 581bb24..0000000 --- a/elm/battlemap/src/Error.elm +++ /dev/null @@ -1,29 +0,0 @@ -module Error exposing (Type, Mode(..), new, to_string) - -type Mode = - IllegalAction - | Programming - -type alias Type = - { - mode: Mode, - message: String - } - -new : Mode -> String -> Type -new mode str = - { - mode = mode, - message = str - } - -to_string : Type -> String -to_string e = - ( - (case e.mode of - IllegalAction -> "Request discarded: " - Programming -> "Error in the program (please report): " - ) - ++ e.message - ) - |