diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-12-22 13:52:41 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2018-02-23 15:42:38 +0100 |
commit | 9b37634dd5c0783cc73e0317979968d0c454155e (patch) | |
tree | 5d9adf01690bdb3fd9fec9fc3c389719b582ddc2 | |
parent | caa4a0246d9ebe956d725feaa773eca2c8bd8f11 (diff) | |
download | libnitrokey-9b37634dd5c0783cc73e0317979968d0c454155e.tar.gz libnitrokey-9b37634dd5c0783cc73e0317979968d0c454155e.tar.bz2 |
Add device status in logged CommandFailed throw
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r-- | include/device_proto.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/device_proto.h b/include/device_proto.h index 50aea38..ebdcdbd 100644 --- a/include/device_proto.h +++ b/include/device_proto.h @@ -456,7 +456,7 @@ namespace nitrokey { if (resp.last_command_status != static_cast<uint8_t>(stick10::command_status::ok)){ dev->m_counters.command_result_not_equal_0_recv++; - LOG(std::string("Throw: CommandFailedException"), Loglevel::DEBUG_L1); + LOG(std::string("Throw: CommandFailedException ") + std::to_string(resp.last_command_status), Loglevel::DEBUG_L1); throw CommandFailedException(resp.command_id, resp.last_command_status); } |