Skip to content

Avoid needless errors

dkg requested to merge dkg/schleuder:parsimonious-errors into master

As it says in GnuPG's doc/DETAILS in the section titled "Format of the --status-fd output":

Every line is prefixed with "[GNUPG:] ", followed by a keyword with the type of the status line and some arguments depending on the type (maybe none); an application should always be willing to ignore unknown keywords that may be emitted by future versions of GnuPG. Also, new versions of GnuPG may add arguments to existing keywords. Any additional arguments should be ignored for forward-compatibility.

By raising errors on unexpected keywords, schleuder is making itself less more brittle in the face of new updates to GnuPG.

Merge request reports