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
Branches
No related tags found
No related merge requests found
Pipeline #31317 passed
...@@ -112,12 +112,15 @@ private object SheetsModal: ModalType { ...@@ -112,12 +112,15 @@ private object SheetsModal: ModalType {
sheet?.process { setState(ImportInProgress(it)) } sheet?.process { setState(ImportInProgress(it)) }
setState(Ready) setState(Ready)
} catch (e: dynamic) { } catch (e: dynamic) {
val str = "$e" + if(e is Throwable) "\n" + e.stackTraceToString() else "" val thr = e as? Exception ?: e as? Throwable
window.alert(str)
if (e is Throwable) {
console.log(e) 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() (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