diff options
author | bidavis <billy.davis@ni.com> | 2020-01-06 15:37:01 -0600 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2020-01-06 14:33:33 -0800 |
commit | 9ca8504f8e3d3f050093c96f824ffb000d9897f7 (patch) | |
tree | dca85d1a74c577dc29085b60d6433a689522c4ab | |
parent | 400b00c34338af502c5d786edcfb8512bfbbff8b (diff) | |
download | uhd-9ca8504f8e3d3f050093c96f824ffb000d9897f7.tar.gz uhd-9ca8504f8e3d3f050093c96f824ffb000d9897f7.tar.bz2 uhd-9ca8504f8e3d3f050093c96f824ffb000d9897f7.zip |
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.
-rwxr-xr-x | mpm/tools/mpm_shell.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |