IR: wrap exceptions and add file path in per-file lowerings

Also add file path to the wrapped exception in JVM IR codegen
This commit is contained in:
Alexander Udalov
2019-11-28 19:17:30 +01:00
parent fd627603a0
commit 2552540f71
7 changed files with 27 additions and 66 deletions
@@ -17,9 +17,9 @@ fun getExceptionMessage(
append(subsystemName).append(" Internal error: ").appendln(message)
if (location != null) {
append("File being compiled at position: ").appendln(location)
append("File being compiled: ").appendln(location)
} else {
append("Element is unknown")
appendln("File is unknown")
}
if (cause != null) {