We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
console.error(e)
1 parent e2032ac commit 0d65d88Copy full SHA for 0d65d88
js-envs/src/main/scala/org/scalajs/jsenv/nodejs/AbstractNodeJSEnv.scala
@@ -141,11 +141,8 @@ abstract class AbstractNodeJSEnv(
141
importerFile.content = {
142
s"""
143
|import("${escapeJS(uri)}").catch(e => {
144
- | /* Make sure to fail the process, but give time to Node.js to
145
- | * display a good stack trace before that.
146
- | */
147
- | setTimeout(() => process.exit(1), 100);
148
- | throw e;
+ | console.error(e);
+ | process.exit(1);
149
|});
150
""".stripMargin
151
}
0 commit comments