diff options
author | Jakub Hampl <kopomir@gmail.com> | 2019-06-14 15:16:06 +0100 |
---|---|---|
committer | Jakub Hampl <kopomir@gmail.com> | 2019-06-14 15:16:06 +0100 |
commit | 76ee94d6c4293ac1bb0c007add56a70f4361845f (patch) | |
tree | bd39305c56576becc8e4cbd36ccfdc3545658e28 /src | |
parent | cdb097cb83548fee0778d4040dd35fc2dd0f3464 (diff) |
No longer throw on missing ports, simply warn.
Diffstat (limited to 'src')
-rw-r--r-- | src/js/main.js | 2 |
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.` |