on master help sign in
improve error on bad messages sent to ports
commitc28b9df7a9604513434a995078dda1a091ccb69e authorEvan Czaplicki <info@elm-lang.org> dateSat 8 Nov 2014, 22:47 (12 years ago) parent7a85931
1 file changed+1−1
compiler/Generate/JavaScript/Ports.hs+1−1
compiler/Generate/JavaScript/Ports.hs+1−1
@@ -24,7 +24,7 @@ typeToString tipe =
2424 JSString -> "a string"
2525 JSArray -> "an array"
2626 JSObject fields ->
27− "an object with fields " ++ List.intercalate ", " fields
27+ "an object with fields '" ++ List.intercalate "', '" fields ++ "'"
2828
2929
3030check :: Expression () -> JSType -> Expression () -> Expression ()