Fix compile-time warning of catch by value
This commit is contained in:
parent
160837b900
commit
12e1233d38
|
@ -245,7 +245,7 @@ void waybar::modules::MPD::tryConnect() {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
checkErrors(connection_.get());
|
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;
|
std::cerr << module_name_ << ": Failed to connect to MPD: " << e.what() << std::endl;
|
||||||
connection_.reset();
|
connection_.reset();
|
||||||
alternate_connection_.reset();
|
alternate_connection_.reset();
|
||||||
|
|
Loading…
Reference in New Issue