| Index: base/native_library_mac.mm
|
| diff --git a/base/native_library_mac.mm b/base/native_library_mac.mm
|
| index 8aaeeb12ff0dde6fabfce20aca6f32a501d0e1ad..f461cd3290c6488dc360420a3be29c899c71a0bc 100644
|
| --- a/base/native_library_mac.mm
|
| +++ b/base/native_library_mac.mm
|
| @@ -73,4 +73,15 @@ string16 GetNativeLibraryName(const string16& name) {
|
| return name + ASCIIToUTF16(".dylib");
|
| }
|
|
|
| +string16 GetLibraryErrorMessage() {
|
| + const char* last_err_message = dlerror();
|
| + string16 err_message;
|
| +
|
| + if (last_err_message) {
|
| + err_message = ASCIIToUTF16(last_err_message);
|
| + }
|
| +
|
| + return err_message;
|
| +}
|
| +
|
| } // namespace base
|
|
|