UPNPSocket.cpp: fix catching polymorphic type warning

This commit is contained in:
GetAway
2019-06-15 10:05:59 +02:00
parent e9aab3054d
commit dacc5fffa2

View File

@@ -147,7 +147,7 @@ std::vector<CUPnPDevice> CUPnPSocket::Discover(std::string service)
{ {
devices.push_back(CUPnPDevice(line)); devices.push_back(CUPnPDevice(line));
} }
catch (std::runtime_error error) catch (std::runtime_error& error)
{ {
std::cout << "error " << error.what() << "\n"; std::cout << "error " << error.what() << "\n";
} }