diff options
author | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2012-10-02 19:40:16 +0000 |
---|---|---|
committer | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2012-10-02 19:40:16 +0000 |
commit | 32a55fe960a609e0d4f25e408d1f56e2204f02db (patch) | |
tree | 1661069a16a46f74266e1068c701cad7661fbe34 /BKULocal/src/main/java | |
parent | 6053457f2c36be893cacbd74f2b173d149f9efd1 (diff) | |
download | mocca-32a55fe960a609e0d4f25e408d1f56e2204f02db.tar.gz mocca-32a55fe960a609e0d4f25e408d1f56e2204f02db.tar.bz2 mocca-32a55fe960a609e0d4f25e408d1f56e2204f02db.zip |
set / log errormessages in some remaining places
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1144 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKULocal/src/main/java')
-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; } |