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());
|
||||
} catch (FeignException e) {
|
||||
if (e.status() == 404) {
|
||||
} catch (NotFoundException e) {
|
||||
throw new BadRequestException("Invalid type: " + addRedactionRequest.getTypeId());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user