m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pl/edu/mimuw/cloudatlas/agent/modules/Stanik.java
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2020-01-11 21:02:34 +0100
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2020-01-11 21:02:34 +0100
commitc631dee52c21df09816ece63d6e6816a408da2f5 (patch)
treeb25afa943ba59a56a668a06f1a72bd3d05f083d5 /src/main/java/pl/edu/mimuw/cloudatlas/agent/modules/Stanik.java
parent9cf66b17165e3b4251dce84500e60f5ef090ba30 (diff)
Fix things
Diffstat (limited to 'src/main/java/pl/edu/mimuw/cloudatlas/agent/modules/Stanik.java')
-rw-r--r--src/main/java/pl/edu/mimuw/cloudatlas/agent/modules/Stanik.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/agent/modules/Stanik.java b/src/main/java/pl/edu/mimuw/cloudatlas/agent/modules/Stanik.java
index c713827..999c193 100644
--- a/src/main/java/pl/edu/mimuw/cloudatlas/agent/modules/Stanik.java
+++ b/src/main/java/pl/edu/mimuw/cloudatlas/agent/modules/Stanik.java
@@ -53,8 +53,9 @@ public class Stanik extends Module {
break;
case UPDATE_CONTACTS:
handleUpdateContacts((UpdateContactsMessage) message);
+ break;
default:
- throw new InvalidMessageType("This type of message cannot be handled by Stanik");
+ throw new InvalidMessageType("This type of message cannot be handled by Stanik" + message.getType().toString());
}
}
@@ -66,7 +67,8 @@ public class Stanik extends Module {
0,
message.getRequestId(),
hierarchy.clone(),
- (HashMap<Attribute, Entry<ValueQuery, ValueTime>>) queries.clone()
+ (HashMap<Attribute, Entry<ValueQuery, ValueTime>>) queries.clone(),
+ contacts
);
sendMessage(response);
}