translator: log filename and line number

This commit is contained in:
e5l
2016-08-11 19:49:47 +03:00
parent 09c014fcfe
commit d15a7383b1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ object WireFormat {
return getInt32Size(fieldNumber, value)
}
fun getUIn32SizeNoTag(value: Int): Int {
fun getUInt32SizeNoTag(value: Int): Int {
return getVarint32Size(value)
}
@@ -46,7 +46,7 @@ fun parseAndAnalyze(sources: List<String>, disposer: Disposable, arm: Boolean =
override fun hasErrors(): Boolean = hasError
override fun report(severity: CompilerMessageSeverity, message: String, location: CompilerMessageLocation) {
System.err.println("[${severity.toString()}] $message")
System.err.println("[${severity.toString()}]${location.path} ${location.line}:${location.column} $message")
hasError = severity.isError || hasError
}
}