Skip to content
Permalink
Browse files

adjusting messages

  • Loading branch information...
ivangiangreco committed Dec 18, 2018
1 parent 19dcb87 commit d345bc3628ba08b5cc4176a0ef563c2fc805b7d3
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/main/scala/org/vitrivr/adampro/communication/rpc/DataQuery.scala
@@ -226,8 +226,9 @@ class DataQuery extends AdamSearchGrpc.AdamSearch with Logging {
case AllDone => {
responseObserver.onNext(QueryResultsMessage(Some(AckMessage(code = AckMessage.Code.OK, message = "no more results"))))
}
case Exception => {
responseObserver.onNext(QueryResultsMessage(Some(AckMessage(code = AckMessage.Code.ERROR, message = "error in execution"))))
case e : Exception => {
log.error(QUERY_MARKER, "error in execution")
responseObserver.onNext(QueryResultsMessage(Some(AckMessage(code = AckMessage.Code.ERROR, message = e.getMessage))))
}
}
} else if(!res.get._2.isDefined) {

0 comments on commit d345bc3

Please sign in to comment.
You can’t perform that action at this time.