Kotlin: Tweak a string

This commit is contained in:
Ian Lynagh
2021-09-09 19:49:22 +01:00
parent b5a8442e50
commit e8d3125b40

View File

@@ -135,7 +135,7 @@ open class Logger(val logCounter: LogCounter, open val tw: TrapWriter) {
}
val ts = timestamp()
tw.writeDiagnostics(StarLabel(), severity.sev, "", msg, "$ts $msg\n$suffix", locationId)
val locStr = if (locationString == null) "" else "At " + locationString
val locStr = if (locationString == null) "" else "At " + locationString + ": "
print("$ts Warning: $locStr$msg\n$suffix")
}
fun printLimitedWarningCounts() {