mirror of
https://github.com/netinvent/npbackup.git
synced 2025-11-12 07:01:37 +08:00
Permission error should be critical
This commit is contained in:
parent
a801925571
commit
a396382fb3
1 changed files with 1 additions and 1 deletions
|
|
@ -397,7 +397,7 @@ class NPBackupRunner:
|
|||
)
|
||||
raise PermissionError
|
||||
except (IndexError, KeyError, PermissionError):
|
||||
self.write_logs("You don't have sufficient permissions", level="error")
|
||||
self.write_logs("You don't have sufficient permissions", level="critical")
|
||||
if self.json_output:
|
||||
js = {
|
||||
"result": False,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue