Move NetworkException formatting into NotificationEngine

This commit is contained in:
Keegan McAllister
2012-05-01 22:28:05 -04:00
committed by Keith Winstein
parent 1b86532a99
commit 9dddcd8566
2 changed files with 18 additions and 4 deletions
+1 -3
View File
@@ -417,9 +417,7 @@ void STMClient::main( void )
network->tick();
} catch ( Network::NetworkException e ) {
if ( !network->shutdown_in_progress() ) {
wchar_t tmp[ 128 ];
swprintf( tmp, 128, L"%s: %s", e.function.c_str(), strerror( e.the_errno ) );
overlays.get_notification_engine().set_notification_string( wstring( tmp ) );
overlays.get_notification_engine().set_network_exception( e );
}
struct timespec req;