From d71656224258b5a8387206e1ebc0e1b37354d029 Mon Sep 17 00:00:00 2001 From: James Brown Date: Thu, 8 Sep 2022 10:53:34 +1000 Subject: [PATCH] Collapse exception --- .../java/com/stormbird/augustcodereader/MainActivity.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/stormbird/augustcodereader/MainActivity.java b/app/src/main/java/com/stormbird/augustcodereader/MainActivity.java index 9ccd3ee..9c12050 100644 --- a/app/src/main/java/com/stormbird/augustcodereader/MainActivity.java +++ b/app/src/main/java/com/stormbird/augustcodereader/MainActivity.java @@ -117,10 +117,8 @@ private String getText(String fileName) content = new String(buffer, 0, length); //Wait until reading finishes process.waitFor(); - } catch (IOException e) { - Log.e("YOLESS", "IOException, " + e.getMessage()); - } catch (InterruptedException e) { - Log.e("YOLESS", "InterruptedException, " + e.getMessage()); + } catch (IOException | InterruptedException e) { + e.getMessage(); } return content;