Fix not found message per entity
This commit is contained in:
parent
cfa6a92af9
commit
af48b4e4b5
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue