Commit b7c80888 authored by katthomas's avatar katthomas Committed by Commit bot

Log error message if os.rename fails

R=agable@google.com
BUG=659178

Review-Url: https://codereview.chromium.org/2448983004
parent dd49f94c
......@@ -299,7 +299,11 @@ def remove(target):
os.makedirs(dead_folder)
dest = path.join(dead_folder, uuid.uuid4().hex)
print 'Marking for removal %s => %s' % (target, dest)
os.rename(target, dest)
try:
os.rename(target, dest)
except Exception as e:
print 'Error renaming %s to %s: %s' % (target, dest, str(e))
raise
def ensure_no_checkout(dir_names):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment