mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Catch and throw exceptions
This commit is contained in:
parent
1f54a7c247
commit
e52fe6cb8b
1 changed files with 6 additions and 1 deletions
|
|
@ -625,7 +625,12 @@ namespace MinecraftClient
|
||||||
{
|
{
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
catch (Exception) { }
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
ConsoleIO.WriteLine(e.Message);
|
||||||
|
ConsoleIO.WriteLine(e.StackTrace ?? "");
|
||||||
|
HandleFailure(); // Other error
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else HandleFailure(Translations.error_determine, true);
|
else HandleFailure(Translations.error_determine, true);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue