mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-09 08:14:43 +00:00
catch and log any linkage errors while enumerating hwws
This commit is contained in:
@@ -54,7 +54,7 @@ public class Hwi {
|
||||
Lark lark = getLark(passphrase);
|
||||
isPromptActive = true;
|
||||
return lark.enumerate().stream().map(Device::fromHardwareClient).toList();
|
||||
} catch(Exception e) {
|
||||
} catch(Throwable e) {
|
||||
log.error("Error enumerating USB devices", e);
|
||||
throw new ImportException("Error scanning" + (e.getMessage() == null || e.getMessage().isEmpty() ? ", check devices are ready" : ": " + e.getMessage()), e);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user