Fix compile-time warning of catch by value

This commit is contained in:
Cole Helbling 2019-04-20 09:16:11 -07:00
parent 160837b900
commit 12e1233d38
No known key found for this signature in database
GPG Key ID: B37E0F2371016A4C
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ void waybar::modules::MPD::tryConnect() {
try {
checkErrors(connection_.get());
} catch (std::runtime_error e) {
} catch (std::runtime_error &e) {
std::cerr << module_name_ << ": Failed to connect to MPD: " << e.what() << std::endl;
connection_.reset();
alternate_connection_.reset();