Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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.
  • Loading branch information
lioncash committed Aug 18, 2013
1 parent 9f4ca0e commit 205ebbe
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -37,9 +37,9 @@
{
System.loadLibrary("main");
}
catch (Exception ex)
catch (UnsatisfiedLinkError ex)
{
Log.w("me", ex.toString());
Log.w("NativeLibrary", ex.toString());
}
}
}

0 comments on commit 205ebbe

Please sign in to comment.