RED-9472
fixing 500 bug when calling upload endpoint
This commit is contained in:
parent
b5a8212e1d
commit
3ca8773b6a
@ -94,6 +94,7 @@ public class RulesController implements RulesResource {
|
|||||||
|
|
||||||
} catch (FeignException e) {
|
} catch (FeignException e) {
|
||||||
if (e.status() == HttpStatus.BAD_REQUEST.value()) {
|
if (e.status() == HttpStatus.BAD_REQUEST.value()) {
|
||||||
|
log.info("exception: " + e);
|
||||||
throw new BadRequestException("The provided rule file is not a valid drools rule file!");
|
throw new BadRequestException("The provided rule file is not a valid drools rule file!");
|
||||||
}
|
}
|
||||||
throw new BadRequestException("Failed to merge rules: " + e.getMessage());
|
throw new BadRequestException("Failed to merge rules: " + e.getMessage());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user