CLI: improve diagnostic message format
- render the whole line where the error/warning points to, if any, and another line with '^', like other compilers do - lowercase diagnostic severity - decapitalize the message if it doesn't start with a proper name
This commit is contained in:
@@ -4,13 +4,25 @@ Buildfile: [TestData]/build.xml
|
||||
build:
|
||||
[javac] Compiling 2 source files to [Temp]
|
||||
[javac] Compiling [[TestData]] => [[Temp]]
|
||||
[javac] ERROR: [TestData]/incorrectKotlinCode.kt: (4, 1) Parameter name expected
|
||||
[javac] ERROR: [TestData]/incorrectKotlinCode.kt: (4, 1) Expecting comma or ')'
|
||||
[javac] ERROR: [TestData]/incorrectKotlinCode.kt: (4, 1) Expecting ')'
|
||||
[javac] [TestData]/incorrectKotlinCode.kt:4:1: error: parameter name expected
|
||||
[javac]
|
||||
[javac] ^
|
||||
[javac] [TestData]/incorrectKotlinCode.kt:4:1: error: expecting comma or ')'
|
||||
[javac]
|
||||
[javac] ^
|
||||
[javac] [TestData]/incorrectKotlinCode.kt:4:1: error: expecting ')'
|
||||
[javac]
|
||||
[javac] ^
|
||||
[kotlinc] Compiling [[TestData]] => [[Temp]]
|
||||
[kotlinc] ERROR: [TestData]/incorrectKotlinCode.kt: (4, 1) Parameter name expected
|
||||
[kotlinc] ERROR: [TestData]/incorrectKotlinCode.kt: (4, 1) Expecting comma or ')'
|
||||
[kotlinc] ERROR: [TestData]/incorrectKotlinCode.kt: (4, 1) Expecting ')'
|
||||
[kotlinc] [TestData]/incorrectKotlinCode.kt:4:1: error: parameter name expected
|
||||
[kotlinc]
|
||||
[kotlinc] ^
|
||||
[kotlinc] [TestData]/incorrectKotlinCode.kt:4:1: error: expecting comma or ')'
|
||||
[kotlinc]
|
||||
[kotlinc] ^
|
||||
[kotlinc] [TestData]/incorrectKotlinCode.kt:4:1: error: expecting ')'
|
||||
[kotlinc]
|
||||
[kotlinc] ^
|
||||
|
||||
BUILD SUCCESSFUL
|
||||
Total time: [time]
|
||||
|
||||
Reference in New Issue
Block a user