aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakub Hampl <kopomir@gmail.com>2019-06-14 15:16:06 +0100
committerJakub Hampl <kopomir@gmail.com>2019-06-14 15:16:06 +0100
commit76ee94d6c4293ac1bb0c007add56a70f4361845f (patch)
treebd39305c56576becc8e4cbd36ccfdc3545658e28 /src
parentcdb097cb83548fee0778d4040dd35fc2dd0f3464 (diff)
No longer throw on missing ports, simply warn.
Diffstat (limited to 'src')
-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 3cd60ca..afc5ebc 100644
--- a/src/js/main.js
+++ b/src/js/main.js
@@ -400,7 +400,7 @@ export function registerPorts(elmApp, settings = {}) {
});
});
} else {
- throw new Error(
+ console.warn(
`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.`