Pull request #160: RED-575: Error 500 if trying add-to-dictionary for a type/dictionary that does not exist
Merge in RED/persistence-service from RED-575-ps1 to master * commit 'afc89e377383ebc056490ae6c5626f05434759bd': RED-575: Error 500 if trying add-to-dictionary for a type/dictionary that does not exist
This commit is contained in:
commit
f5cea99790
@ -79,10 +79,8 @@ public class ManualRedactionService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dictionaryController.getDictionaryForType(addRedactionRequest.getTypeId());
|
dictionaryController.getDictionaryForType(addRedactionRequest.getTypeId());
|
||||||
} catch (FeignException e) {
|
} catch (NotFoundException e) {
|
||||||
if (e.status() == 404) {
|
|
||||||
throw new BadRequestException("Invalid type: " + addRedactionRequest.getTypeId());
|
throw new BadRequestException("Invalid type: " + addRedactionRequest.getTypeId());
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user