natRuntime.cc (_load): Include library path with exception message.
* java/lang/natRuntime.cc (_load): Include library path with exception message. From-SVN: r31979
This commit is contained in:
parent
83379befc0
commit
1733ad7f10
1 changed files with 3 additions and 1 deletions
|
@ -125,7 +125,9 @@ java::lang::Runtime::_load (jstring path, jboolean do_search)
|
|||
if (h == NULL)
|
||||
{
|
||||
const char *msg = lt_dlerror ();
|
||||
_Jv_Throw (new UnsatisfiedLinkError (JvNewStringLatin1 (msg)));
|
||||
jstring str = path->concat (JvNewStringLatin1 (": "));
|
||||
str = str->concat (JvNewStringLatin1 (msg));
|
||||
_Jv_Throw (new UnsatisfiedLinkError (str));
|
||||
}
|
||||
|
||||
add_library (h);
|
||||
|
|
Loading…
Add table
Reference in a new issue