Use octal representation for permissions

This commit is contained in:
Shreya 2021-06-07 13:26:14 +05:30
parent 4ad49d19c7
commit 5ba8effe1a
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ def ensure_file_existence(file: str) -> None:
def ensure_file_permissions(file: str) -> None:
if not file_has_expected_permissions(path=file, expected_permissions="0o400"):
raise InsecurePermissionsError(
f"{file} has insecure permissions. Required permissions: r--------. Exiting."
f"{file} has insecure permissions. Required permissions: 400. Exiting."
)