Signed-off-by: 26751 <2675174581@qq.com>

This commit is contained in:
26751
2023-04-01 16:09:07 +08:00
parent b6f7f3b73f
commit da03911610
6 changed files with 67 additions and 13 deletions

View File

@@ -265,7 +265,7 @@ def execute(context: Context) -> list:
# 检查权限
if ctx.privilege < node['privilege']:
raise CommandPrivilegeError(tips_custom.command_admin_message)
raise CommandPrivilegeError(tips_custom.command_admin_message+"{}".format(path))
# 执行
execed, reply = node['cls'].process(ctx)
@@ -278,7 +278,7 @@ def execute(context: Context) -> list:
path = path + '.' + ctx.crt_command
except KeyError:
traceback.print_exc()
raise CommandPrivilegeError(tips_custom.command_err_message)
raise CommandPrivilegeError(tips_custom.command_err_message+"{}".format(path))
def register_all():