mirror of https://github.com/openXC7/prjxray.git
lib: xilinx: catch exceptions by reference
Signed-off-by: Michael Gielda <mgielda@antmicro.com>
This commit is contained in:
parent
aeea0b9ef3
commit
9e8aa9f755
|
|
@ -11,7 +11,7 @@ absl::optional<Part> Part::FromFile(const std::string& path) {
|
|||
try {
|
||||
YAML::Node yaml = YAML::LoadFile(path);
|
||||
return yaml.as<Part>();
|
||||
} catch (YAML::Exception e) {
|
||||
} catch (YAML::Exception& e) {
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue