on master help sign in
Give a hint about the developer console for runtime errors
commit330aa78bde429aa2674e6571b54af9d8017666aa authorEvan Czaplicki <info@elm-lang.org> dateSun 4 Aug 2013, 14:45 (13 years ago) parent8a6a823
1 file changed+2−1
runtime/Init.js+2−1
runtime/Init.js+2−1
@@ -101,7 +101,8 @@ function init(display, container, module, moduleToReplace) {
101101 try {
102102 Module = module(elm);
103103 } catch(e) {
104− Module.main = Elm.Text(elm).text('<code>' + e.message + '</code>');
104+ var directions = "<br/>&nbsp; &nbsp; Open the developer console for more details."
105+ Module.main = Elm.Text(elm).text('<code>' + e.message + directions + '</code>');
105106 reportAnyErrors = function() { throw e; }
106107 }
107108 inputs = ElmRuntime.filterDeadInputs(inputs);