import java.util.HashSet;
import java.util.Map;
import java.util.UUID;
-import java.util.stream.Collectors;
public class GetUserStatusCommand implements JsonRpcLocalCommand {
try {
registered = m.areUsersRegistered(new HashSet<>(ns.getList("recipient")));
} catch (IOException e) {
- throw new IOErrorException("Unable to check if users are registered", e);
+ throw new IOErrorException("Unable to check if users are registered: "
+ + e.getMessage()
+ + " ("
+ + e.getClass().getSimpleName()
+ + ")", e);
}
// Output
final var number = entry.getValue().first();
final var uuid = entry.getValue().second();
return new JsonUserStatus(entry.getKey(), number, uuid == null ? null : uuid.toString(), uuid != null);
- }).collect(Collectors.toList());
+ }).toList();
jsonWriter.write(jsonUserStatuses);
} else {