From 76ee94d6c4293ac1bb0c007add56a70f4361845f Mon Sep 17 00:00:00 2001 From: Jakub Hampl Date: Fri, 14 Jun 2019 15:16:06 +0100 Subject: No longer throw on missing ports, simply warn. --- src/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.` -- cgit v1.2.3