Skip to content

Commit

Permalink
Change error type
Browse files Browse the repository at this point in the history
  • Loading branch information
dennyverbeeck committed Jul 12, 2018
1 parent f426981 commit 1ba3027
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -436,11 +436,11 @@ public ResponseEntity<MinimalSourceDetailsDTO> 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)) {
Expand Down

0 comments on commit 1ba3027

Please sign in to comment.