on master help sign in
switch "union type" to "custom type" in compiler crash error message

Fixes https://github.com/elm/error-message-catalog/issues/271

commit3f657b6a6c416e1c8d38d7081a50080e6ff0f672 authorEvan Czaplicki <evancz@users.noreply.github.com> dateThu 25 Jul 2019, 18:52 (7 years ago) parent9586e25
1 file changed+1−1
compiler/src/Optimize/Port.hs+1−1
compiler/src/Optimize/Port.hs+1−1
@@ -58,7 +58,7 @@ toEncoder tipe =
5858 | name == Name.array -> encodeArray arg
5959
6060 _ ->
61− error "toEncoder: bad union type"
61+ error "toEncoder: bad custom type"
6262
6363 Can.TRecord _ (Just _) ->
6464 error "toEncoder: bad record"