mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-03 17:22:43 +01:00 
			
		
		
		
	Fix compile-time warning of catch by value
This commit is contained in:
		@@ -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();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user