Catch exception by reference to fix -Wcatch-value warning

pull/2519/head
Sandor Magyar 3 years ago
parent d011332616
commit f3b61c70ba

@ -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");
}

Loading…
Cancel
Save