fix build error

This commit is contained in:
Bluzume 2022-03-14 11:40:06 +13:00 committed by GitHub
parent 0356930a5c
commit 1f8cdd7423
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@ namespace HISP
string[] fileList = Directory.GetFiles(Path.Combine(baseDir, "client"), "*", SearchOption.AllDirectories); string[] fileList = Directory.GetFiles(Path.Combine(baseDir, "client"), "*", SearchOption.AllDirectories);
foreach (string file in fileList) foreach (string file in fileList)
addToList(file); 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); MessageBox.Show("Web server failed to start: "+e.Message, "Error starting web server", MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
@ -144,7 +144,7 @@ namespace HISP
IncrementProgress(); IncrementProgress();
try{ try{
GameServer.StartServer(); 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); MessageBox.Show("Horse Isle server failed to start: "+e.Message, "Error starting web server", MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
IncrementProgress(); IncrementProgress();