Merge pull request #158 from mgielda/patch-2

lib: xilinx: catch exceptions by reference
This commit is contained in:
John McMaster 2018-10-17 17:51:05 -07:00 committed by GitHub
commit b37416103c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {};
}
}