Skip to content

Commit

Permalink
Merge pull request #33 from sdamm/master
Browse files Browse the repository at this point in the history
Don't catch polymorphic type InvalidClaimError by value
  • Loading branch information
pokowaka authored Jun 5, 2018
2 parents 4f09c53 + ef99f5b commit e13ea08
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 e13ea08

Please sign in to comment.