summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2013-08-18 18:30:13 -0400
committerLioncash <mathew1800@gmail.com>2013-08-18 18:30:13 -0400
commit205ebbebbbcbb8e3346ec5ee09ededd0010ad400 (patch)
treef31858e4b3064b016cb3bcc3d3c6846dc48aa7b4
parent9f4ca0e0a7fac773f94b9a207105d4a94405f345 (diff)
[Android] Catch a more specific exception type (UnsatisfiedLinkError) when trying to load the main native Dolphin 'library'.
Also made the logging tag more specific. It's generally bad to catch Exception because it's not very specific for the person reading the code. It doesn't say why that exception might have happened, it just indicates it's possible for an Exception to happen, which is quite general.
-rw-r--r--Source/Android/src/org/dolphinemu/dolphinemu/NativeLibrary.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/NativeLibrary.java b/Source/Android/src/org/dolphinemu/dolphinemu/NativeLibrary.java
index 14f7527c1d..8622026b97 100644
--- a/Source/Android/src/org/dolphinemu/dolphinemu/NativeLibrary.java
+++ b/Source/Android/src/org/dolphinemu/dolphinemu/NativeLibrary.java
@@ -37,9 +37,9 @@ public final class NativeLibrary
{
System.loadLibrary("main");
}
- catch (Exception ex)
+ catch (UnsatisfiedLinkError ex)
{
- Log.w("me", ex.toString());
+ Log.w("NativeLibrary", ex.toString());
}
}
}