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:
Carlos Fernandez 2024-03-04 09:12:10 -08:00 committed by Facebook GitHub Bot
parent 6216b83d43
commit d1c05c5623

View File

@ -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}"