aboutsummaryrefslogtreecommitdiffstats
path: root/src/js
diff options
context:
space:
mode:
authorJakub Hampl <kopomir@gmail.com>2018-10-15 16:24:16 +0100
committerJakub Hampl <kopomir@gmail.com>2018-10-15 16:24:16 +0100
commit6cd451b4fe0fd28994ad6c5a0f282dc47d2f7142 (patch)
treec6b52c6607ad2407f6b67bf3b1f03ece781c08e0 /src/js
parentb6d81004b6f9fb85ecfd410c7d5b2d04e8d27c0a (diff)
Stuff for Mapbox 50
Diffstat (limited to 'src/js')
-rw-r--r--src/js/main.js2
1 files changed, 1 insertions, 1 deletions
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;