Skip to content

Commit

Permalink
catch exception by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
dragorn committed Sep 11, 2018
1 parent 66894e5 commit d90b480
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trackedelement.cc
Expand Up @@ -594,7 +594,7 @@ void TrackerElementSerializer::pre_serialize_path(const SharedElementSummary& in

inter->pre_serialize();
}
} catch (std::runtime_error c) {
} catch (std::runtime_error& c) {
// Do nothing if we hit a map error
return;
}
Expand Down Expand Up @@ -623,7 +623,7 @@ void TrackerElementSerializer::post_serialize_path(const SharedElementSummary& i

inter->post_serialize();
}
} catch (std::runtime_error c) {
} catch (std::runtime_error& c) {
// Do nothing if we hit a map error
return;
}
Expand Down

0 comments on commit d90b480

Please sign in to comment.