Skip to content

CLI - improve error message format #6472

Closed
@mreynolds389

Description

@mreynolds389

Issue Description

When a generic exception is logged it contains lots of information, and is not really human readable or friendly:

# dsconf slapd-localhost logging access set max-logs 3245345345345345sdfsdfsf
Error: 103 - 3 - 53 - Server is unwilling to perform - [] - Invalid value "3245345345345345sdfsdfsf" for attribute (nsslapd-accesslog-maxlogsperdir), value must be between 1 and 2147483647 - modify_ext_s(('cn=config', [(2, 'nsslapd-accesslog-maxlogsperdir', [b'3245345345345345sdfsdfsf'])]),{'serverctrls': None, 'clientctrls': None, 'escapehatch': 'i am sure'}) on instance localhost

For non-json/non-verbose operations it would be nice to just provide the minimum necessary information

# dsconf slapd-localhost logging access set max-logs 3245345345345345sdfsdfsf
Error:  Server is unwilling to perform(53) - Invalid value "3245345345345345sdfsdfsf" for attribute (nsslapd-accesslog-maxlogsperdir), value must be between 1 and 2147483647

Metadata

Metadata

Assignees

Labels

CLICLI toolsneeds triageThe issue will be triaged during scrum

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions