mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
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:
parent
ef06b08c8d
commit
80aee75c6d
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue