removed debugging exeption for exceptions

This commit is contained in:
Bitl 2020-07-04 17:10:36 -07:00
parent 125003bba9
commit 1c0efaf84f
12 changed files with 23 additions and 23 deletions

View File

@ -22,7 +22,7 @@ public class ClientScript
string result = code.Substring(pFrom, pTo - pFrom);
return result;
}
catch (Exception) when (!Env.Debugging)
catch (Exception)
{
return "%donothing%";
}
@ -114,7 +114,7 @@ public class ClientScript
} else {
return source;
}
} catch (Exception) when (!Env.Debugging) {
} catch (Exception) {
return source;
}
}

View File

@ -63,7 +63,7 @@ public class IniFile
return temp.ToString();
}
catch (Exception)
{
{
IniWriteValue(Section, Key, DefaultValue);
return IniReadValue(Section, Key);
}

View File

@ -247,7 +247,7 @@ public class SecurityFuncs
string[] a3 = a2.Split('<');
ipAddress = a3[0];
}
catch (Exception) when (!Env.Debugging)
catch (Exception)
{
ipAddress = "localhost";
}

View File

@ -19,10 +19,10 @@ public static class SplashReader
try {
splash = splashes[new CryptoRandom().Next(0, splashes.Length - 1)];
} catch (Exception) when (!Env.Debugging) {
} catch (Exception) {
try {
splash = splashes[0];
} catch (Exception) when (!Env.Debugging) {
} catch (Exception) {
splash = "missingno";
return splash;
}

View File

@ -61,7 +61,7 @@ public static class TreeNodeHelper
} else {
return "";
}
} catch (Exception) when (!Env.Debugging) {
} catch (Exception) {
return "";
}
}

View File

@ -149,7 +149,7 @@ public class SimpleHTTPServer
try {
HttpListenerContext context = _listener.GetContext();
Process(context);
} catch (Exception) when (!Env.Debugging) {
} catch (Exception) {
}
}
@ -221,7 +221,7 @@ public class SimpleHTTPServer
context.Response.StatusCode = (int)HttpStatusCode.OK;
context.Response.OutputStream.Flush();
}
} catch (Exception) when (!Env.Debugging) {
} catch (Exception) {
context.Response.StatusCode = (int)HttpStatusCode.InternalServerError;
}

View File

@ -227,7 +227,7 @@ namespace NovetusLauncher
Image icon1 = LauncherFuncs.LoadImage(GlobalVars.extradirIcons + "\\" + GlobalVars.PlayerName + ".png");
pictureBox10.Image = icon1;
}
catch (Exception) when (!Env.Debugging)
catch (Exception)
{
Image icon1 = LauncherFuncs.LoadImage(GlobalVars.extradir + "\\NoExtra.png");
pictureBox10.Image = icon1;
@ -584,7 +584,7 @@ namespace NovetusLauncher
textBox10.Text = GlobalVars.Custom_Extra;
}
}
catch (Exception) when (!Env.Debugging)
catch (Exception)
{
if (Directory.Exists(GlobalVars.hatdir))
{
@ -1681,7 +1681,7 @@ namespace NovetusLauncher
textBox10.Text = GlobalVars.Custom_Extra;
}
}
catch (Exception) when (!Env.Debugging)
catch (Exception)
{
if (Directory.Exists(GlobalVars.hatdir))
{
@ -1712,7 +1712,7 @@ namespace NovetusLauncher
{
icon.LoadImage();
}
catch (Exception) when (!Env.Debugging)
catch (Exception)
{
}
@ -1726,7 +1726,7 @@ namespace NovetusLauncher
Image icon1 = LauncherFuncs.LoadImage(GlobalVars.extradirIcons + "\\" + GlobalVars.PlayerName + ".png");
pictureBox10.Image = icon1;
}
catch (Exception) when (!Env.Debugging)
catch (Exception)
{
Image icon1 = LauncherFuncs.LoadImage(GlobalVars.extradir + "\\NoExtra.png");
pictureBox10.Image = icon1;

View File

@ -223,7 +223,7 @@ namespace NovetusLauncher
Image icon1 = LauncherFuncs.LoadImage(GlobalVars.extradirIcons + "\\" + GlobalVars.PlayerName + ".png");
pictureBox10.Image = icon1;
}
catch (Exception) when (!Env.Debugging)
catch (Exception)
{
Image icon1 = LauncherFuncs.LoadImage(GlobalVars.extradir + "\\NoExtra.png");
pictureBox10.Image = icon1;
@ -576,7 +576,7 @@ namespace NovetusLauncher
textBox10.Text = GlobalVars.Custom_Extra;
}
}
catch (Exception) when (!Env.Debugging)
catch (Exception)
{
if (Directory.Exists(GlobalVars.hatdir))
{
@ -1673,7 +1673,7 @@ namespace NovetusLauncher
textBox10.Text = GlobalVars.Custom_Extra;
}
}
catch (Exception) when (!Env.Debugging)
catch (Exception)
{
if (Directory.Exists(GlobalVars.hatdir))
{
@ -1704,7 +1704,7 @@ namespace NovetusLauncher
{
icon.LoadImage();
}
catch (Exception) when (!Env.Debugging)
catch (Exception)
{
}
@ -1718,7 +1718,7 @@ namespace NovetusLauncher
Image icon1 = LauncherFuncs.LoadImage(GlobalVars.extradirIcons + "\\" + GlobalVars.PlayerName + ".png");
pictureBox10.Image = icon1;
}
catch (Exception) when (!Env.Debugging)
catch (Exception)
{
Image icon1 = LauncherFuncs.LoadImage(GlobalVars.extradir + "\\NoExtra.png");
pictureBox10.Image = icon1;

View File

@ -1407,7 +1407,7 @@ namespace NovetusLauncher
ConsolePrint("AddonLoader - " + addon.getInstallOutcome(), 3);
}
}
catch (Exception) when (!Env.Debugging)
catch (Exception)
{
if (!string.IsNullOrWhiteSpace(addon.getInstallOutcome()))
{

View File

@ -1372,7 +1372,7 @@ namespace NovetusLauncher
ConsolePrint("AddonLoader - " + addon.getInstallOutcome(), 3);
}
}
catch (Exception) when (!Env.Debugging)
catch (Exception)
{
if (!string.IsNullOrWhiteSpace(addon.getInstallOutcome()))
{

View File

@ -293,7 +293,7 @@ namespace NovetusLauncher
worker.ReportProgress(0);
File.Copy(path, path.Replace(".rbxl", " BAK.rbxl"));
}
catch (Exception) when (!Env.Debugging)
catch (Exception)
{
worker.ReportProgress(100);
}

View File

@ -162,7 +162,7 @@ namespace NovetusURI
LaunchClient(rbxexe,args);
}
}
catch (Exception) when (!Env.Debugging)
catch (Exception)
{
label1.Text = "The client has been detected as modified.";
}