Fix variable name in fallback code when BOOST_ASIO_HAS_FILE

This commit is contained in:
Martchus 2022-02-22 20:22:00 +01:00
parent a25db1f9e0
commit 5c62014b3b
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ void BuildProcessSession::DataForWebSession::streamFile(
auto ec = boost::system::error_code();
m_fileStream.open(filePath, boost::asio::stream_file::read_only, ec);
#else
auto error = boost::beast::error_code();
auto ec = boost::beast::error_code();
m_file.open(filePath.data(), boost::beast::file_mode::scan, ec);
#endif
if (ec) {