mirror of https://github.com/openXC7/prjxray.git
Merge pull request #158 from mgielda/patch-2
lib: xilinx: catch exceptions by reference
This commit is contained in:
commit
b37416103c
|
|
@ -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