From f1ff5401e705698c57d1791e320adbc4c879fec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikl=C3=B3s=20T=C3=B3th?= <tothmiklostibor@gmail.com> Date: Fri, 17 Jun 2022 17:51:33 +0200 Subject: [PATCH] Error memes --- src/jsMain/kotlin/ui/SheetsModal.kt | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/jsMain/kotlin/ui/SheetsModal.kt b/src/jsMain/kotlin/ui/SheetsModal.kt index bb3d7f1..a199dd7 100644 --- a/src/jsMain/kotlin/ui/SheetsModal.kt +++ b/src/jsMain/kotlin/ui/SheetsModal.kt @@ -114,13 +114,8 @@ private object SheetsModal: ModalType { } catch (e: dynamic) { val thr = e as? Exception ?: e as? Throwable console.log(e) - var str = "$e" - if (thr != null) { - thr.printStackTrace() - str += "\n" - str += thr.stackTraceToString() - } - window.alert(str) + thr?.printStackTrace() + window.alert("$e") } } (document.getElementById(closeId) as HTMLElement).click() -- GitLab