Small improvement to display of unexpected errors

git-svn-id: https://zxing.googlecode.com/svn/trunk@162 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2008-02-04 19:42:56 +00:00
parent ef06b08c8d
commit 80aee75c6d

View file

@ -163,7 +163,12 @@ public final class ZXingMIDlet extends MIDlet {
}
void showError(Throwable t) {
showError(t.getMessage());
String message = t.getMessage();
if (message != null && message.length() > 0) {
showError(message);
} else {
showError(t.toString());
}
}
void showError(String message) {