diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/dynload_win.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/dynload_win.c b/Python/dynload_win.c index 457d47f..2f28c3c 100644 --- a/Python/dynload_win.c +++ b/Python/dynload_win.c @@ -258,8 +258,8 @@ dl_funcptr _PyImport_FindSharedFuncptrWindows(const char *prefix, This should not happen if called correctly. */ if (theLength == 0) { message = PyUnicode_FromFormat( - "DLL load failed with error code %u", - errorCode); + "DLL load failed with error code %u while importing %s", + errorCode, shortname); } else { /* For some reason a \r\n is appended to the text */ @@ -269,8 +269,8 @@ dl_funcptr _PyImport_FindSharedFuncptrWindows(const char *prefix, theLength -= 2; theInfo[theLength] = '\0'; } - message = PyUnicode_FromString( - "DLL load failed: "); + message = PyUnicode_FromFormat( + "DLL load failed while importing %s: ", shortname); PyUnicode_AppendAndDel(&message, PyUnicode_FromWideChar( |