Skip to content
This repository was archived by the owner on Feb 4, 2020. It is now read-only.

Commit ef688a7

Browse files
author
Frerich Raabe
committed
Nicer timeout error messages
Tell *which* lock timed out, too. This should help with debugging.
1 parent 35cf38f commit ef688a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clcache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,9 @@ def acquire(self):
263263
if result not in [0, self.WAIT_ABANDONED_CODE]:
264264
if result == self.WAIT_TIMEOUT_CODE:
265265
errorString = \
266-
'Failed to acquire cache lock after {}ms; ' \
266+
'Failed to acquire lock {} after {}ms; ' \
267267
'try setting CLCACHE_OBJECT_CACHE_TIMEOUT_MS environment variable to a larger value.'.format(
268-
self._timeoutMs)
268+
self._mutexName, self._timeoutMs)
269269
else:
270270
errorString = 'Error! WaitForSingleObject returns {result}, last error {error}'.format(
271271
result=result,

0 commit comments

Comments
 (0)