mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-25 15:43:13 +03:00
Catch exception by const reference (#271)
Summary: As title. Pull Request resolved: https://github.com/facebookincubator/mvfst/pull/271 Reviewed By: kvtsoy Differential Revision: D38998803 Pulled By: avasylev fbshipit-source-id: 8ac83492175419760528941313ab0c1cc897c4bc
This commit is contained in:
committed by
Facebook GitHub Bot
parent
aad0f6f8ef
commit
7808961fc9
@@ -39,7 +39,7 @@ void FileQLogger::setupStream() {
|
||||
folly::to<std::string>(path_, "/", (dcid.value()).hex(), extension);
|
||||
try {
|
||||
writer_ = std::make_unique<folly::AsyncFileWriter>(outputPath);
|
||||
} catch (std::system_error err) {
|
||||
} catch (const std::system_error& err) {
|
||||
LOG(ERROR) << "Error creating qlog file. " << err.what();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user