From d6308c409a7a6c00fa20ead2c295385938b85c76 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 11 Apr 2020 12:28:21 -0400 Subject: [PATCH] add missing error logging --- app/src/main/java/org/grapheneos/pdfviewer/PdfViewer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/org/grapheneos/pdfviewer/PdfViewer.java b/app/src/main/java/org/grapheneos/pdfviewer/PdfViewer.java index 1a3343a..e4d5a7a 100644 --- a/app/src/main/java/org/grapheneos/pdfviewer/PdfViewer.java +++ b/app/src/main/java/org/grapheneos/pdfviewer/PdfViewer.java @@ -326,6 +326,7 @@ public class PdfViewer extends AppCompatActivity implements LoaderManager.Loader } mInputStream = getContentResolver().openInputStream(mUri); } catch (IOException e) { + Log.e(TAG, "failed to open URI: " + mUri); return; } mWebView.loadUrl("https://localhost/viewer.html");