summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorten Sørvig <[email protected]>2023-01-06 14:23:17 +0100
committerMikołaj Boc <[email protected]>2023-03-16 13:32:52 +0000
commit2021ba9382a28540b46dd8a5066bdf40f25c2eb1 (patch)
tree17f21f6b550a9a98255f191c8d427eff0fb6a22c
parentf07e9b8b99dc46b1f77b901b96e4b0d854677669 (diff)
wasm: make qtloader print stack trace on exception
We were displaying the exception type by on the error page, however the exception contains a stack trace as well which we can print to the console. Change-Id: Ia6c95c3f179eb68e57f9d6d2d8ad960591d0b365 Reviewed-by: Aleksandr Reviakin <[email protected]> Reviewed-by: Lorn Potter <[email protected]> (cherry picked from commit 8611b9d8bee38f1d39da58bcdff8a6157e97620f) Reviewed-by: Mikołaj Boc <[email protected]>
-rw-r--r--src/plugins/platforms/wasm/qtloader.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/wasm/qtloader.js b/src/plugins/platforms/wasm/qtloader.js
index 5fa5c288f39..0419509098c 100644
--- a/src/plugins/platforms/wasm/qtloader.js
+++ b/src/plugins/platforms/wasm/qtloader.js
@@ -413,6 +413,8 @@ function _QtLoader(config)
} else {
publicAPI.exitText = exception.toString();
publicAPI.crashed = true;
+ // Print stack trace to console
+ console.log(exception);
}
setStatus("Exited");
};