diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-29 23:36:22 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-29 23:36:22 +0000 |
commit | 6dd643500a204a484397e626443e738a6e668bec (patch) | |
tree | 79520ecffb525a2500333d4eee52fe71d0953e36 /base | |
parent | be61b42e45eb49e26789aaa4bb74763a61b26593 (diff) | |
download | chromium_src-6dd643500a204a484397e626443e738a6e668bec.zip chromium_src-6dd643500a204a484397e626443e738a6e668bec.tar.gz chromium_src-6dd643500a204a484397e626443e738a6e668bec.tar.bz2 |
linux: Don't crash if we fail to dlopen a plugin
Review URL: http://codereview.chromium.org/146073
Patch from Antoine Labour <piman@google.com>.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19554 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/native_library_linux.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/base/native_library_linux.cc b/base/native_library_linux.cc index 39221c1..d1494133 100644 --- a/base/native_library_linux.cc +++ b/base/native_library_linux.cc @@ -15,8 +15,10 @@ namespace base { // static NativeLibrary LoadNativeLibrary(const FilePath& library_path) { void* dl = dlopen(library_path.value().c_str(), RTLD_LAZY|RTLD_DEEPBIND); - if (!dl) - NOTREACHED() << "dlopen failed: " << dlerror(); + if (!dl) { + LOG(ERROR) << "dlopen failed when trying to open " << library_path.value() + << ": " << dlerror(); + } return dl; } |