Slightly friendlier, more generic error message when no barcode is found
[zxing.git] / javame / src / com / google / zxing / client / j2me / ZXingMIDlet.java
index b840cfc..a3bfc24 100644 (file)
@@ -143,9 +143,13 @@ public final class ZXingMIDlet extends MIDlet {
   }
 
   void showError(Throwable t) {
-    showAlert(new Alert("Error", t.getMessage(), null, AlertType.ERROR));
+         showError(t.getMessage());
   }
 
+       void showError(String message) {
+               showAlert(new Alert("Error", message, null, AlertType.ERROR));
+       }
+
   private void showAlert(Alert alert) {
     Display display = Display.getDisplay(this);
     display.setCurrent(alert, canvas);