Merge error handlers

- Merge all error handling code into one method
- Fix ConsoleIO not clearing the line being typed upon reset
- Update console title upon logging in to the server
- Pass "failed to ping this IP" to AutoRelog (thx doranchak)
This commit is contained in:
ORelio 2015-04-22 10:27:53 +02:00
parent 8b261894c8
commit 57c66c82d7
3 changed files with 81 additions and 80 deletions

View file

@ -167,7 +167,7 @@ namespace MinecraftClient
}
else if (!singlecommand && Settings.interactiveMode)
{
Program.HandleOfflineMode();
Program.HandleFailure();
}
}
}
@ -371,7 +371,7 @@ namespace MinecraftClient
will_restart |= bot.OnDisconnect(reason, message);
if (!will_restart)
Program.HandleOfflineMode();
Program.HandleFailure();
}
/// <summary>