Fix not found message per entity

This commit is contained in:
Serafeim Chatzopoulos 2024-06-04 16:08:10 +03:00
parent cfa6a92af9
commit af48b4e4b5
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ public class DataSourceService {
var doc = solrRepository.getById(id);
if (doc == null) {
throw new NotFoundException("Organization with id: " + id + " not found");
throw new NotFoundException("Data source with id: " + id + " not found");
}
return doc;

View File

@ -45,7 +45,7 @@ public class ResearchProductService {
var doc = solrRepository.getById(id);
if (doc == null) {
throw new NotFoundException("Project with id: " + id + " not found");
throw new NotFoundException("Research product with id: " + id + " not found");
}
return doc;