From 9ca8504f8e3d3f050093c96f824ffb000d9897f7 Mon Sep 17 00:00:00 2001 From: bidavis Date: Mon, 6 Jan 2020 15:37:01 -0600 Subject: mpm: include the failed mpm_shell command This commit changes an mpm_shell error message to include the command that failed when the mpm_shell does not have the claim token. --- mpm/tools/mpm_shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mpm/tools') diff --git a/mpm/tools/mpm_shell.py b/mpm/tools/mpm_shell.py index ed2998809..2997a5eb2 100755 --- a/mpm/tools/mpm_shell.py +++ b/mpm/tools/mpm_shell.py @@ -200,7 +200,7 @@ class MPMShell(cmd.Cmd): from mprpc.exceptions import RPCError if requires_token and \ (self._claimer is None or self._claimer.get_token() is None): - print("Cannot execute `{}' -- no claim available!") + print("Cannot execute '{}' -- no claim available!".format(command)) return try: if args or requires_token: -- cgit v1.2.3