Currently the OS error is ignored at https://github.com/nagisa/rust_libloading/blob/006afa9d614a2a5bd2ce666b657a3fb83ce2d090/src/error.rs#L112 and several other of the error variants, making it hard to figure out what the actual error was.