Elektra
0.9.9
|
Too verbose error message Currently for every error, 9 lines are shown in which most of them are not relevant to end users/administrators. One goal is to reduce the verbosity of such messages and let users/administrators see only information they need.
Possible variations on what message should be displayed, e.g., to keep the mountpoint information or on how wordings should be (with or without "Sorry, ...", coloring of certain parts of a message, etc.)
Examples would be to
At
, Mountpoint
, Configfile
, Module
. This information though yields useful information or was even added as a requestThe command kdb set failed while accessing the key database on mountpoint (...) with the info
Reason: Validation of key "<key>" with string "<value>" failed. (validation failed)
The error message has the current format:
The new default message will look like this:
The NR
will be the color red in case of an error or yellow in case of a warning while MODULE
will be the color blue.
Optionally a third line indicating a solution can be added. Eg. for a permission related error there would be a third line:
To avoid losing information, the user can use the command line argument -v
(verbose) to show Mountpoint
, Configfile
in addition to the current error message. Furthermore a developer can use the command line argument -d
(debug) to show At
for debugging purposes.
The new error message is much more succinct which gives end users more relevant information. Furthermore the solution approach still holds all necessary information if requested by users.
Description
will be incorporated into Reason
whereas the Module
will be incorporated into the general sentence starting the error message.