From 6cd451b4fe0fd28994ad6c5a0f282dc47d2f7142 Mon Sep 17 00:00:00 2001 From: Jakub Hampl Date: Mon, 15 Oct 2018 16:24:16 +0100 Subject: Stuff for Mapbox 50 --- src/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/js') diff --git a/src/js/main.js b/src/js/main.js index e56533c..fb7d44f 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -362,7 +362,7 @@ export function registerPorts(elmApp, settings = {}) { } }); } else { - throw new Error(`Expected Elm App to expose ${elmApp.ports[options.outgoingPort]} port.`); + throw new Error(`Expected Elm App to expose ${options.outgoingPort} port. Please add https://github.com/gampleman/elm-mapbox/blob/master/examples/MapCommands.elm to your project and import it from your Main file.`); } return elmApp; -- cgit v1.2.3