Better error message on rmdir failure.

This commit is contained in:
Chris Johns 2013-05-13 14:46:30 +10:00
parent 5237f1ccb7
commit ca047f1e12

View File

@ -126,7 +126,7 @@ def mkdir(path):
def removeall(path):
def _onerror(function, path, excinfo):
print 'removeall error: (%r) %s' % (function, path)
print 'removeall error: (%s) %s' % (excinfo, path)
path = host(path)
shutil.rmtree(path, onerror = _onerror)