Skip to content
Snippets Groups Projects
Commit 1616827a authored by Tóth Miklós Tibor's avatar Tóth Miklós Tibor :shrug:
Browse files

Error memes

parent ca97eb38
No related branches found
No related tags found
No related merge requests found
Pipeline #31317 passed
......@@ -112,12 +112,15 @@ private object SheetsModal: ModalType {
sheet?.process { setState(ImportInProgress(it)) }
setState(Ready)
} catch (e: dynamic) {
val str = "$e" + if(e is Throwable) "\n" + e.stackTraceToString() else ""
window.alert(str)
if (e is Throwable) {
val thr = e as? Exception ?: e as? Throwable
console.log(e)
e.printStackTrace()
var str = "$e"
if (thr != null) {
thr.printStackTrace()
str += "\n"
str += thr.stackTraceToString()
}
window.alert(str)
}
}
(document.getElementById(closeId) as HTMLElement).click()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment