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:
Bryce McKinlay 2000-02-15 08:51:04 +00:00
parent 83379befc0
commit 1733ad7f10

View file

@ -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);