Skip to content

Commit

Permalink
Don't catch polymorphic type InvalidClaimError by value
Browse files Browse the repository at this point in the history
  • Loading branch information
sdamm authored Jun 5, 2018
1 parent 4f09c53 commit ef99f5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validators/claims/claimvalidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ bool AnyClaimValidator::IsValid(const json &claimset) const {
try {
if (validator->IsValid(claimset))
return true;
} catch (InvalidClaimError ice) {
} catch (const InvalidClaimError &ice) {
}
}
throw InvalidClaimError("None of the children validate");
Expand Down

0 comments on commit ef99f5b

Please sign in to comment.