diff --git a/HorseIsleServer/N00BS/Program.cs b/HorseIsleServer/N00BS/Program.cs index 888104b..4f0d60a 100644 --- a/HorseIsleServer/N00BS/Program.cs +++ b/HorseIsleServer/N00BS/Program.cs @@ -94,7 +94,7 @@ namespace HISP string[] fileList = Directory.GetFiles(Path.Combine(baseDir, "client"), "*", SearchOption.AllDirectories); foreach (string file in fileList) addToList(file); - }catch(Exception as e){ + }catch(Exception e){ MessageBox.Show("Web server failed to start: "+e.Message, "Error starting web server", MessageBoxButtons.OK, MessageBoxIcon.Error); } @@ -144,7 +144,7 @@ namespace HISP IncrementProgress(); try{ GameServer.StartServer(); - }catch(Exception as e){ + }catch(Exception e){ MessageBox.Show("Horse Isle server failed to start: "+e.Message, "Error starting web server", MessageBoxButtons.OK, MessageBoxIcon.Error); } IncrementProgress();