Skip to content

Commit 3f657b6

Browse files
committed
switch "union type" to "custom type" in compiler crash error message
Fixes elm/error-message-catalog#271
1 parent 9586e25 commit 3f657b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/Optimize/Port.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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"

0 commit comments

Comments
 (0)