mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
device: remove dependency on readline
This commit is contained in:
parent
c102c49da5
commit
49c70962ee
2 changed files with 4 additions and 7 deletions
|
@ -70,8 +70,6 @@ target_link_libraries(device
|
|||
cncrypto
|
||||
ringct
|
||||
${OPENSSL_CRYPTO_LIBRARIES}
|
||||
${GNU_READLINE_LIBRARY}
|
||||
${EPEE_READLINE}
|
||||
PRIVATE
|
||||
${Blocks}
|
||||
${EXTRA_LIBRARIES})
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#ifdef HAVE_PCSC
|
||||
#include "device_ledger.hpp"
|
||||
#endif
|
||||
#include "common/scoped_message_writer.h"
|
||||
#include "misc_log_ex.h"
|
||||
|
||||
|
||||
namespace hw {
|
||||
|
@ -56,12 +56,11 @@ namespace hw {
|
|||
|
||||
auto device = devices.registry.find(device_descriptor);
|
||||
if (device == devices.registry.end()) {
|
||||
auto logger = tools::fail_msg_writer();
|
||||
logger << "device not found in registry '"<<device_descriptor<<"'\n" <<
|
||||
"known devices:"<<device_descriptor<<"'";
|
||||
MERROR("device not found in registry: '" << device_descriptor << "'\n" <<
|
||||
"known devices:");
|
||||
|
||||
for( const auto& sm_pair : devices.registry ) {
|
||||
logger<< " - " << sm_pair.first ;
|
||||
MERROR(" - " << sm_pair.first);
|
||||
}
|
||||
throw std::runtime_error("device not found: "+ device_descriptor);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue