Commit e29cd5f3 authored by Spiros Koulouzis's avatar Spiros Koulouzis

added dbg msg

parent edc313a8
......@@ -76,6 +76,7 @@ public class ToscaTemplateService {
public String findByID(String id) throws JsonProcessingException, NotFoundException {
ToscaTemplate tt = dao.findById(id).get();
if (tt == null) {
java.util.logging.Logger.getLogger(ToscaTemplateService.class.getName()).log(Level.SEVERE, "ToscaTemplate with id: " + id + " not found");
throw new NotFoundException(404, "ToscaTemplate with id: " + id + " not found");
}
String ymlStr = objectMapper.writeValueAsString(tt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment