From fb8527789444fda93b0f9a93029eba7ee5b21f50 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Tue, 9 Nov 2021 12:35:06 +0200 Subject: [PATCH] output hwi signing exception to log --- src/main/java/com/sparrowwallet/sparrow/control/DevicePane.java | 2 +- src/main/java/com/sparrowwallet/sparrow/io/Hwi.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/control/DevicePane.java b/src/main/java/com/sparrowwallet/sparrow/control/DevicePane.java index 95a39af7..a1ef2c93 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/DevicePane.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/DevicePane.java @@ -625,7 +625,7 @@ public class DevicePane extends TitledDescriptionPane { }); signPSBTService.setOnFailed(workerStateEvent -> { setError("Signing Error", signPSBTService.getException().getMessage()); - log.error("Signing Error: " + signPSBTService.getException().getMessage()); + log.error("Signing Error: " + signPSBTService.getException().getMessage(), signPSBTService.getException()); signButton.setDisable(false); }); setDescription("Signing..."); diff --git a/src/main/java/com/sparrowwallet/sparrow/io/Hwi.java b/src/main/java/com/sparrowwallet/sparrow/io/Hwi.java index d1e5e771..2edf69c1 100644 --- a/src/main/java/com/sparrowwallet/sparrow/io/Hwi.java +++ b/src/main/java/com/sparrowwallet/sparrow/io/Hwi.java @@ -220,7 +220,7 @@ public class Hwi { } catch(IOException e) { throw new SignTransactionException("Could not sign PSBT", e); } catch(PSBTParseException e) { - throw new SignTransactionException("Could not parsed signed PSBT", e); + throw new SignTransactionException("Could not parse signed PSBT", e); } finally { isPromptActive = false; }