diff --git a/briar-desktop/src/org/briarproject/plugins/file/UnixRemovableDriveMonitor.java b/briar-desktop/src/org/briarproject/plugins/file/UnixRemovableDriveMonitor.java index 5a57b316d03d7e4e2608547638145c15f1f27ed7..17116e05e562623beafd1fe2c1c2097165ca80ec 100644 --- a/briar-desktop/src/org/briarproject/plugins/file/UnixRemovableDriveMonitor.java +++ b/briar-desktop/src/org/briarproject/plugins/file/UnixRemovableDriveMonitor.java @@ -39,7 +39,11 @@ JNotifyListener { triedLoad = true; } if (loadError != null) { - throw new IOException("JNotify not loaded", loadError); + // gymnastics due to having to support earlier Android APIs + // TODO(infinity0): add a utility that does this and convert other exceptions too + IOException e = new IOException("JNotify not loaded"); + e.initCause(loadError); + throw e; } }