lib: xilinx: catch exceptions by reference

Signed-off-by: Michael Gielda <mgielda@antmicro.com>
This commit is contained in:
Michael Gielda 2018-10-18 02:28:21 +02:00 committed by GitHub
parent aeea0b9ef3
commit 9e8aa9f755
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 {};
}
}