From 1ba3027dd4997772c62d65dbc4dc6b2abe4ddcd8 Mon Sep 17 00:00:00 2001 From: Denny Verbeeck Date: Thu, 12 Jul 2018 23:18:24 +0200 Subject: [PATCH] Change error type --- .../org/radarcns/management/web/rest/SubjectResource.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/radarcns/management/web/rest/SubjectResource.java b/src/main/java/org/radarcns/management/web/rest/SubjectResource.java index 8894461df..b16cf3397 100644 --- a/src/main/java/org/radarcns/management/web/rest/SubjectResource.java +++ b/src/main/java/org/radarcns/management/web/rest/SubjectResource.java @@ -436,11 +436,11 @@ public ResponseEntity assignSources(@PathVariable Strin // check if combination (producer, model, version) is present try { String producer = Objects.requireNonNull(sourceDto.getSourceTypeProducer(), - ErrorConstants.ERR_SOURCE_NOT_FOUND); + ErrorConstants.ERR_VALIDATION); String model = Objects.requireNonNull(sourceDto.getSourceTypeModel(), - ErrorConstants.ERR_SOURCE_NOT_FOUND); + ErrorConstants.ERR_VALIDATION); String version = Objects.requireNonNull(sourceDto.getSourceTypeCatalogVersion(), - ErrorConstants.ERR_SOURCE_NOT_FOUND); + ErrorConstants.ERR_VALIDATION); SourceTypeDTO sourceTypeDto = sourceTypeService .findByProducerAndModelAndVersion(producer, model, version); if (Objects.isNull(sourceTypeDto)) {