# HG changeset patch # User Teemu Piippo # Date 1418681127 -7200 # Node ID 874bbfa55da802fc9193e05b78fef5b79ef55557 # Parent 9e0f26f020e165b1a69614f72223467407a29be7 - fixed: IPAddress::StringParseError did not inherit from std::exception and was thus not caught properly - fixed: IP string parse errors were also not printed properly (newline was missing) diff -r 9e0f26f020e1 -r 874bbfa55da8 sources/interface.cpp --- a/sources/interface.cpp Mon Dec 15 23:58:01 2014 +0200 +++ b/sources/interface.cpp Tue Dec 16 00:05:27 2014 +0200 @@ -804,7 +804,7 @@ } catch (std::exception& e) { - print (e.what()); + print ("%1\n", e.what()); return; } @@ -933,7 +933,7 @@ } catch (std::exception& e) { - print (e.what()); + print ("%1\n", e.what()); return; } diff -r 9e0f26f020e1 -r 874bbfa55da8 sources/network/ipaddress.h --- a/sources/network/ipaddress.h Mon Dec 15 23:58:01 2014 +0200 +++ b/sources/network/ipaddress.h Tue Dec 16 00:05:27 2014 +0200 @@ -38,7 +38,7 @@ struct IPAddress { - class StringParseError + class StringParseError : public std::exception { String m_message;