Fix default utility not passing supportdir to zip/install-ra. Fix game crash when utility crashes during extract.

This commit is contained in:
Paul Chote
2011-03-30 21:47:48 +13:00
parent e63f9c34f8
commit 1f12306924
2 changed files with 19 additions and 5 deletions

View File

@@ -70,7 +70,6 @@ namespace OpenRA.Utility
}
try
{
throw new InvalidOperationException("foo");
var action = WithDefault( null, () => actions[args[0]]);
if (action == null)
PrintUsage();
@@ -80,7 +79,12 @@ namespace OpenRA.Utility
catch( Exception e )
{
Log.AddChannel("utility", "utility.log");
Log.Write("utility", "Received args: {0}", string.Join(" ", args));
Log.Write("utility", "{0}", e.ToString());
Console.WriteLine("Error: Utility application crashed. See utility.log for details");
if (piping)
Console.Out.Close();
throw;
}