return empty box instead of failure when no bank is found

This commit is contained in:
sorinmanole 2016-08-09 15:18:04 +02:00
parent 6d74ca41d8
commit a748cf078b

View File

@ -227,7 +227,7 @@ object KafkaMappedConnector extends Connector with CreateViewImpls with Loggable
val rValue = r.get
Full(new KafkaBank(new KafkaInboundBank(rValue.id, rValue.shortName, rValue.fullName, rValue.logo, rValue.url)))
} else {
Failure(ErrorMessages.ConnectorEmptyResponse, Empty, Empty)
Empty
}
}