1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-11-24 04:01:07 +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:
Onchere Bironga
2022-08-25 08:48:58 -07:00
committed by Facebook GitHub Bot
parent aad0f6f8ef
commit 7808961fc9

View File

@@ -39,7 +39,7 @@ void FileQLogger::setupStream() {
folly::to<std::string>(path_, "/", (dcid.value()).hex(), extension); folly::to<std::string>(path_, "/", (dcid.value()).hex(), extension);
try { try {
writer_ = std::make_unique<folly::AsyncFileWriter>(outputPath); 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(); LOG(ERROR) << "Error creating qlog file. " << err.what();
return; return;
} }