Function perseus_cli::errors::err_should_cause_deletion[][src]

pub fn err_should_cause_deletion(err: &Error) -> bool
Expand description

Checks if the given error should cause the CLI to delete the ‘.perseus/’ folder so the user doesn’t have something incomplete. When deleting the directory, it should only be deleted if it exists, if not don’t worry. If it does and deletion fails, fail like hell.