File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 794
794
indexEnd = error . indexOf ( ':' , index ) ;
795
795
if ( indexEnd > index ) {
796
796
lineNum = parseInt ( error . substring ( index , indexEnd ) ) ;
797
- index = indexEnd + 1 ;
798
- indexEnd = error . indexOf ( "ERROR: 0:" , index ) ;
799
- lineError = htmlEncode ( ( indexEnd > index ) ? error . substring ( index , indexEnd ) : error . substring ( index ) ) ;
800
- line = code . setMarker ( lineNum - 1 , '<abbr title="' + lineError + '">' + lineNum + '</abbr>' , "errorMarker" ) ;
801
- code . setLineClass ( line , "errorLine" ) ;
802
- errorLines . push ( line ) ;
797
+ if ( ( ! isNaN ( lineNum ) ) && ( lineNum > 0 ) ) {
798
+ index = indexEnd + 1 ;
799
+ indexEnd = error . indexOf ( "ERROR: 0:" , index ) ;
800
+ lineError = htmlEncode ( ( indexEnd > index ) ? error . substring ( index , indexEnd ) : error . substring ( index ) ) ;
801
+ line = code . setMarker ( lineNum - 1 , '<abbr title="' + lineError + '">' + lineNum + '</abbr>' , "errorMarker" ) ;
802
+ code . setLineClass ( line , "errorLine" ) ;
803
+ errorLines . push ( line ) ;
804
+ }
803
805
}
804
806
}
805
807
You can’t perform that action at this time.
0 commit comments