Skip to content

Commit

Permalink
sort.py: Better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty-snake committed Feb 14, 2021
1 parent 3eac076 commit 53bcbfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ def main(args):
except PermissionError:
print(f"[ Error ] Can't read/write `{filename}'")
exit_code = 1
except:
print(f"[ Error ] An error occurred while processing `{filename}'")
except Exception as err:
print(f"[ Error ] An error occurred while processing `{filename}': {err}")
exit_code = 1
return exit_code

Expand Down

0 comments on commit 53bcbfa

Please sign in to comment.