From 7656a4064b296ccc351e9aaf9e51c0ac9667b1e2 Mon Sep 17 00:00:00 2001 From: dchandler Date: Mon, 8 Aug 2005 06:06:26 +0000 Subject: [PATCH] Friendlier error message. --- source/org/thdl/tib/text/ttt/EWTSTshegBarScanner.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/source/org/thdl/tib/text/ttt/EWTSTshegBarScanner.java b/source/org/thdl/tib/text/ttt/EWTSTshegBarScanner.java index 123b812..8399d35 100644 --- a/source/org/thdl/tib/text/ttt/EWTSTshegBarScanner.java +++ b/source/org/thdl/tib/text/ttt/EWTSTshegBarScanner.java @@ -120,8 +120,17 @@ class EWTSTshegBarScanner extends TTshegBarScanner { al.add(new TString("EWTS", sb.substring(i, i+1), TString.TIBETAN_PUNCTUATION)); } 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)); + if (null != errors) { + errors.append("Offset " + i + ": ERROR " + errMsg + "\n"); + } } } }