mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
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 {
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user