mirror of
https://github.com/facebook/sapling.git
synced 2024-10-05 06:18:07 +03:00
Eden cli: Return correct code (failure) if we couldn't release file handles
Summary: eden rm now has the ability to try to kill processes holding on to files we want to delete. If the user rejects the offer and prefers to solve things manually, we're showing "success" even though the rm wasn't successful. This just returns the right code so we don't display that message. Differential Revision: D54379250 fbshipit-source-id: 8f75a827f2d2c563aecfe29bb8e56dfdbea950d9
This commit is contained in:
parent
6216b83d43
commit
d1c05c5623
@ -1609,6 +1609,8 @@ Do you still want to delete {path}?"""
|
||||
fs_mod.new().rmdir(
|
||||
path, args.preserve_mount_point
|
||||
)
|
||||
else:
|
||||
return 1
|
||||
except Exception as ex:
|
||||
print(
|
||||
f"Error: cannot remove contents of {path} even after trying to kill processes holding resources: {ex}"
|
||||
|
Loading…
Reference in New Issue
Block a user