mirror of
https://github.com/meshcore-dev/meshcore-cli.git
synced 2026-04-20 22:13:48 +00:00
more explicit error when command not found
This commit is contained in:
parent
0b81bc7aa0
commit
01aa56467e
1 changed files with 2 additions and 2 deletions
|
|
@ -2718,7 +2718,7 @@ async def next_cmd(mc, cmds, json_output=False):
|
|||
await mc.ensure_contacts()
|
||||
contact = mc.get_contact_by_name(cmds[0])
|
||||
if contact is None:
|
||||
logger.error(f"Unknown command : {cmd}, will exit ...")
|
||||
logger.error(f"Unknown command : {cmd}. {cmds} not executed ...")
|
||||
return None
|
||||
|
||||
await interactive_loop(mc, to=contact)
|
||||
|
|
@ -2727,7 +2727,7 @@ async def next_cmd(mc, cmds, json_output=False):
|
|||
return cmds[argnum+1:]
|
||||
|
||||
except IndexError:
|
||||
logger.error("Error in parameters, returning")
|
||||
logger.error("Error in parameters")
|
||||
return None
|
||||
except EOFError:
|
||||
logger.error("Cancelled")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue