diff options
Diffstat (limited to 'BKULocal')
-rw-r--r-- | BKULocal/src/main/java/at/gv/egiz/bku/local/stal/ExclusiveAccessSTAL.java | 2 | ||||
-rw-r--r-- | BKULocal/src/main/java/at/gv/egiz/bku/local/stal/LocalSignRequestHandler.java | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/BKULocal/src/main/java/at/gv/egiz/bku/local/stal/ExclusiveAccessSTAL.java b/BKULocal/src/main/java/at/gv/egiz/bku/local/stal/ExclusiveAccessSTAL.java index 8562677c..ef8addc0 100644 --- a/BKULocal/src/main/java/at/gv/egiz/bku/local/stal/ExclusiveAccessSTAL.java +++ b/BKULocal/src/main/java/at/gv/egiz/bku/local/stal/ExclusiveAccessSTAL.java @@ -71,11 +71,13 @@ public class ExclusiveAccessSTAL implements STAL { // time out log.info("Timeout while waiting for exclusive access to STAL."); ErrorResponse response = new ErrorResponse(6000); + response.setErrorMessage("Timeout while waiting for exclusive access to STAL."); return Collections.singletonList((STALResponse) response); } } catch (InterruptedException e) { // interrupted ErrorResponse response = new ErrorResponse(6000); + response.setErrorMessage("Interrupted: " + e); return Collections.singletonList((STALResponse) response); } diff --git a/BKULocal/src/main/java/at/gv/egiz/bku/local/stal/LocalSignRequestHandler.java b/BKULocal/src/main/java/at/gv/egiz/bku/local/stal/LocalSignRequestHandler.java index 3ced30a6..c4855400 100644 --- a/BKULocal/src/main/java/at/gv/egiz/bku/local/stal/LocalSignRequestHandler.java +++ b/BKULocal/src/main/java/at/gv/egiz/bku/local/stal/LocalSignRequestHandler.java @@ -62,7 +62,9 @@ public class LocalSignRequestHandler extends SignRequestHandler { return super.handleRequest(request); } else { log.error("Got unexpected STAL request: {}.", request); - return new ErrorResponse(1000); + ErrorResponse err = new ErrorResponse(1000); + err.setErrorMessage("Got unexpected STAL request: " + request); + return err; } |