summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2020-01-28 09:42:43 (GMT)
committerSteve Dower <steve.dower@python.org>2020-01-28 09:42:43 (GMT)
commit13c1c3556f2c12d0be2af890fabfbf44280b845c (patch)
treee6dd4326c5c0c68d4ba01aa188cc8b760a711d53 /Modules
parentc45a2aa9e255b5c7c211faa79f6b23895b64ab27 (diff)
downloadcpython-13c1c3556f2c12d0be2af890fabfbf44280b845c.zip
cpython-13c1c3556f2c12d0be2af890fabfbf44280b845c.tar.gz
cpython-13c1c3556f2c12d0be2af890fabfbf44280b845c.tar.bz2
bpo-39393: Misleading error message on dependent DLL resolution failure (GH-18093)
Diffstat (limited to 'Modules')
-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 7b13fa0..65c6eb1 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) {