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);
|
var doc = solrRepository.getById(id);
|
||||||
if (doc == null) {
|
if (doc == null) {
|
||||||
throw new NotFoundException("Organization with id: " + id + " not found");
|
throw new NotFoundException("Data source with id: " + id + " not found");
|
||||||
}
|
}
|
||||||
|
|
||||||
return doc;
|
return doc;
|
||||||
|
|
|
@ -45,7 +45,7 @@ public class ResearchProductService {
|
||||||
|
|
||||||
var doc = solrRepository.getById(id);
|
var doc = solrRepository.getById(id);
|
||||||
if (doc == null) {
|
if (doc == null) {
|
||||||
throw new NotFoundException("Project with id: " + id + " not found");
|
throw new NotFoundException("Research product with id: " + id + " not found");
|
||||||
}
|
}
|
||||||
|
|
||||||
return doc;
|
return doc;
|
||||||
|
|
Loading…
Reference in New Issue