Friendlier error message.
This commit is contained in:
parent
5788416629
commit
7656a4064b
1 changed files with 10 additions and 1 deletions
|
@ -120,8 +120,17 @@ class EWTSTshegBarScanner extends TTshegBarScanner {
|
||||||
al.add(new TString("EWTS", sb.substring(i, i+1),
|
al.add(new TString("EWTS", sb.substring(i, i+1),
|
||||||
TString.TIBETAN_PUNCTUATION));
|
TString.TIBETAN_PUNCTUATION));
|
||||||
} else {
|
} else {
|
||||||
al.add(new TString("EWTS", "ERROR TODO(DLC)[EWTS->Tibetan]: this character is illegal in EWTS: " + sb.substring(i, i+1),
|
String errMsg;
|
||||||
|
al.add(new TString("EWTS",
|
||||||
|
errMsg
|
||||||
|
= ErrorsAndWarnings.getMessage(116,
|
||||||
|
shortMessages,
|
||||||
|
sb.substring(i, i + 1),
|
||||||
|
EWTSTraits.instance()),
|
||||||
TString.ERROR));
|
TString.ERROR));
|
||||||
|
if (null != errors) {
|
||||||
|
errors.append("Offset " + i + ": ERROR " + errMsg + "\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue