Commit c4e8dd12 authored by Tommi Rantala's avatar Tommi Rantala

Catch exception by reference

parent 8b416d3c
......@@ -400,7 +400,7 @@ std::unique_ptr<AttachedProbe> BPFtrace::attach_probe(Probe &probe, const BpfOrc
else
return std::make_unique<AttachedProbe>(probe, func->second);
}
catch (std::runtime_error e)
catch (std::runtime_error &e)
{
std::cerr << e.what() << std::endl;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment