mercurial/cext/pathencode.c
changeset 38056 9aaa74f9eb87
parent 38055 4fccc73ce2f6
child 38113 f7a0398996ad
--- a/mercurial/cext/pathencode.c	Fri May 18 20:42:31 2018 -0400
+++ b/mercurial/cext/pathencode.c	Fri May 18 20:43:01 2018 -0400
@@ -664,7 +664,8 @@
 		Py_DECREF(name);
 
 		if (hashlib == NULL) {
-			PyErr_SetString(PyExc_ImportError, "hashlib");
+			PyErr_SetString(PyExc_ImportError,
+			                "pathencode failed to find hashlib");
 			return -1;
 		}
 		shafunc = PyObject_GetAttrString(hashlib, "sha1");
@@ -673,7 +674,7 @@
 		if (shafunc == NULL) {
 			PyErr_SetString(PyExc_AttributeError,
 			                "module 'hashlib' has no "
-			                "attribute 'sha1'");
+			                "attribute 'sha1' in pathencode");
 			return -1;
 		}
 	}