File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -86,13 +86,18 @@ module ts {
86
86
}
87
87
88
88
function reportDiagnostic ( diagnostic : Diagnostic ) {
89
+ var output = "" ;
90
+
89
91
if ( diagnostic . file ) {
90
92
var loc = diagnostic . file . getLineAndCharacterFromPosition ( diagnostic . start ) ;
91
- sys . write ( diagnostic . file . filename + "(" + loc . line + "," + loc . character + "): " + diagnostic . messageText + sys . newLine ) ;
92
- }
93
- else {
94
- sys . write ( diagnostic . messageText + sys . newLine ) ;
93
+
94
+ var output = diagnostic . file . filename + "(" + loc . line + "," + loc . character + "): " ;
95
95
}
96
+
97
+ var category = DiagnosticCategory [ diagnostic . category ] ;
98
+ output += category + " TS" + diagnostic . code + ": " + diagnostic . messageText + sys . newLine ;
99
+
100
+ sys . write ( output ) ;
96
101
}
97
102
98
103
function reportDiagnostics ( diagnostics : Diagnostic [ ] ) {
You can’t perform that action at this time.
0 commit comments