allow for error dedup and don't mention offending line number, fixes #5494

This commit is contained in:
Johannes Rieken
2016-04-19 11:32:03 +02:00
parent 1fc599d4fc
commit 93fda14153

View File

@@ -322,7 +322,7 @@ export class ExtHostDocumentData extends MirrorModel2 {
}
if (line < 0 || line >= this._lines.length) {
throw new Error('Illegal value ' + line + ' for `line`');
throw new Error('Illegal value for `line`');
}
let result = this._textLines[line];