summaryrefslogtreecommitdiff
path: root/Modules/_ctypes
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2020-01-28 02:42:43 -0700
committerSteve Dower <steve.dower@python.org>2020-01-28 20:42:43 +1100
commit13c1c3556f2c12d0be2af890fabfbf44280b845c (patch)
treee6dd4326c5c0c68d4ba01aa188cc8b760a711d53 /Modules/_ctypes
parentc45a2aa9e255b5c7c211faa79f6b23895b64ab27 (diff)
downloadcpython-git-13c1c3556f2c12d0be2af890fabfbf44280b845c.tar.gz
bpo-39393: Misleading error message on dependent DLL resolution failure (GH-18093)
Diffstat (limited to 'Modules/_ctypes')
-rw-r--r--Modules/_ctypes/callproc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c
index 7b13fa041a..65c6eb15a2 100644
--- a/Modules/_ctypes/callproc.c
+++ b/Modules/_ctypes/callproc.c
@@ -1311,8 +1311,9 @@ static PyObject *load_library(PyObject *self, PyObject *args)
if (err == ERROR_MOD_NOT_FOUND) {
PyErr_Format(PyExc_FileNotFoundError,
- ("Could not find module '%.500S'. Try using "
- "the full path with constructor syntax."),
+ ("Could not find module '%.500S' (or one of its "
+ "dependencies). Try using the full path with "
+ "constructor syntax."),
nameobj);
return NULL;
} else if (err) {