mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.3208: dynamic library load error does not mention why it failed
Problem: Dynamic library load error does not mention why it failed. Solution: Add the error message. (Martin Tournoij, closes #8621)
This commit is contained in:
committed by
Bram Moolenaar
parent
5a234eb18e
commit
1a3e5747b7
@@ -141,10 +141,12 @@ struct PyMethodDef { Py_ssize_t a; };
|
||||
# endif
|
||||
# define close_dll dlclose
|
||||
# define symbol_from_dll dlsym
|
||||
# define load_dll_error dlerror
|
||||
# else
|
||||
# define load_dll vimLoadLib
|
||||
# define close_dll FreeLibrary
|
||||
# define symbol_from_dll GetProcAddress
|
||||
# define load_dll_error GetWin32Error
|
||||
# endif
|
||||
|
||||
// This makes if_python.c compile without warnings against Python 2.5
|
||||
@@ -688,7 +690,7 @@ python_runtime_link_init(char *libname, int verbose)
|
||||
if (!hinstPython)
|
||||
{
|
||||
if (verbose)
|
||||
semsg(_(e_loadlib), libname);
|
||||
semsg(_(e_loadlib), libname, load_dll_error());
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user