diff options
author | Daniel Mueller <deso@posteo.net> | 2019-01-02 15:53:18 -0800 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2019-01-03 02:12:17 +0100 |
commit | 65ead1426e1e9864b7e245fd729a66e689e549b4 (patch) | |
tree | a93c39fdd5e2b1240d8df3beea69b8335e9b5941 /Cargo.toml | |
parent | 60a976fb7f721b800ba145a9bd5b416c6d3de834 (diff) | |
download | nitrokey-rs-65ead1426e1e9864b7e245fd729a66e689e549b4.tar.gz nitrokey-rs-65ead1426e1e9864b7e245fd729a66e689e549b4.tar.bz2 |
Preserve unknown error code values
The CommandError::Unknown variant, which is used whenever a reported
error code is not known, makes it close to impossible to determine the
root cause of, say, a one-off error, because all information explaining
what went wrong is discarded.
With this change we adjust the Unknown variant to include the error
report. In addition, we introduce a new CommandError variant, Undefined,
that is used when no error code is available.
Diffstat (limited to 'Cargo.toml')
0 files changed, 0 insertions, 0 deletions