summaryrefslogtreecommitdiff
path: root/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/Signature.java
diff options
context:
space:
mode:
Diffstat (limited to 'bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/Signature.java')
-rw-r--r--bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/Signature.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/Signature.java b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/Signature.java
index e7f04457..8cc6caf2 100644
--- a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/Signature.java
+++ b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/Signature.java
@@ -434,12 +434,13 @@ public class Signature {
Throwable cause = e.getCause();
while (cause != null) {
if (cause instanceof STALSignatureException) {
- if (((STALSignatureException) cause).getCause() instanceof SLViewerException) {
- throw (SLViewerException) ((STALSignatureException) cause).getCause();
+ STALSignatureException stalCause = (STALSignatureException) cause;
+ if (stalCause.getCause() instanceof SLViewerException) {
+ throw (SLViewerException) stalCause.getCause();
}
- int errorCode = ((STALSignatureException) cause).getErrorCode();
+ int errorCode = stalCause.getErrorCode();
SLCommandException commandException = new SLCommandException(errorCode);
- log.info("Failed to sign signature.", e);
+ log.info("Failed to sign signature: {}", stalCause.getMessage(), e);
throw commandException;
} else {
cause = cause.getCause();