aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-06-28 11:28:48 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-06-28 11:28:48 -0700
commitd887e70b1001d6d543335089ad138f4794cccb3f (patch)
tree01821bc6373a5981d5cf61114a780508dec8beb7
parentef12fb6c3a1f94b620fc71362d42d7e207fe10d6 (diff)
improve error message
-rwxr-xr-xemcc2
-rw-r--r--src/shell.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/emcc b/emcc
index 705538fc..75750e1e 100755
--- a/emcc
+++ b/emcc
@@ -1639,7 +1639,7 @@ try:
match = re.match('.*?<script[^>]*>{{{ SCRIPT_CODE }}}</script>', shell,
re.DOTALL)
if match is None:
- raise RuntimeError('Could not find script insertion point')
+ raise RuntimeError('''Could not find script insertion point - make sure you have <script type='text/javascript'>{{{ SCRIPT_CODE }}}</script> in your HTML file (with no newlines)''')
generate_source_map(target, match.group().count('\n'))
html.write(shell.replace('{{{ SCRIPT_CODE }}}', open(final).read()))
else:
diff --git a/src/shell.html b/src/shell.html
index 00765271..22bc9de9 100644
--- a/src/shell.html
+++ b/src/shell.html
@@ -86,7 +86,7 @@
}
};
Module.setStatus('Downloading...');
- </script>
+ </script>
<script type='text/javascript'>{{{ SCRIPT_CODE }}}</script>
</body>
</html>