Priority:
Low, something is a little off
Description:
Currently, when an exception occurs in the CLI, the output shown in the terminal contain additional colons: Error: : Specify either id or name. This is due to the ZOD implementation.
Steps to reproduce:
- Disable the prompt config key
m365 cli config set --key prompt --value false
- Trigger a CLI command that validates using zod and cause it to throw an exception. For example, by not providing any input.
m365 booking business get
- Observe the output in the terminal
Expected results:
- Error messages are clearly formatted
Actual results:
Additional colons may be inserted into the exception: Error: : Specify either id or name
CLI for Microsoft 365 version:
10.9.0
nodejs version:
22
Operating system (environment):
Windows
Shell:
PowerShell
Priority:
Low, something is a little off
Description:
Currently, when an exception occurs in the CLI, the output shown in the terminal contain additional colons:
Error: : Specify either id or name. This is due to the ZOD implementation.Steps to reproduce:
m365 cli config set --key prompt --value falsem365 booking business getExpected results:
Actual results:
Additional colons may be inserted into the exception:
Error: : Specify either id or nameCLI for Microsoft 365 version:
10.9.0
nodejs version:
22
Operating system (environment):
Windows
Shell:
PowerShell