Move fzf error handling into its own class and add appropriate tests

This commit is contained in:
Eric Torres
2021-12-29 23:31:08 -08:00
parent 037f6dd119
commit bdc3ecae3b
4 changed files with 45 additions and 5 deletions

View File

@ -72,7 +72,7 @@ if __name__ == "__main__":
exit(error.E_INTERRUPT)
except fzf.FZFError as f:
print(f)
exit(error.E_INTERRUPT)
exit(f.exit_code)
dest_file = Path(args.dest)