diff options
author | Morten Sørvig <morten.sorvig@qt.io> | 2023-01-06 14:23:17 +0100 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2023-01-09 09:41:26 +0000 |
commit | 8611b9d8bee38f1d39da58bcdff8a6157e97620f (patch) | |
tree | 9f4fd46ca9cd8a00f0c3ce7f22c663083accb3ec /src/plugins/platforms/wasm/qtloader.js | |
parent | 8e218c11c0dd3ab6baa66c151620a00fde24d898 (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.
Pick-to: 6.4 6.5
Change-Id: Ia6c95c3f179eb68e57f9d6d2d8ad960591d0b365
Reviewed-by: Aleksandr Reviakin <aleksandr.reviakin@qt.io>
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'src/plugins/platforms/wasm/qtloader.js')
-rw-r--r-- | src/plugins/platforms/wasm/qtloader.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/wasm/qtloader.js b/src/plugins/platforms/wasm/qtloader.js index 5fa5c288f3..0419509098 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"); }; |