Catch exception by reference to fix -Wcatch-value warning

This commit is contained in:
Sandor Magyar 2022-10-17 16:04:49 -04:00
parent d011332616
commit f3b61c70ba

View File

@ -37,7 +37,7 @@ public:
db_name_ = db_name;
coll_name_ = collection_name;
}
catch (const std::exception)
catch (const std::exception&)
{
throw spdlog_ex("Error opening database");
}