Exception debugging should use Error stream

This commit is contained in:
Matt Nadareski
2025-07-31 09:14:22 -04:00
parent 38b6427e4e
commit 544637779c
16 changed files with 20 additions and 20 deletions

View File

@@ -186,7 +186,7 @@ namespace SabreTools.Serialization.Wrappers
}
catch (Exception ex)
{
if (includeDebug) Console.WriteLine(ex);
if (includeDebug) Console.Error.WriteLine(ex);
return false;
}

View File

@@ -169,7 +169,7 @@ namespace SabreTools.Serialization.Wrappers
}
catch (Exception ex)
{
if (includeDebug) Console.WriteLine(ex);
if (includeDebug) Console.Error.WriteLine(ex);
return false;
}

View File

@@ -223,7 +223,7 @@ namespace SabreTools.Serialization.Wrappers
}
catch (Exception ex)
{
if (includeDebug) Console.WriteLine(ex);
if (includeDebug) Console.Error.WriteLine(ex);
return false;
}

View File

@@ -330,7 +330,7 @@ namespace SabreTools.Serialization.Wrappers
}
catch (Exception ex)
{
if (includeDebug) Console.WriteLine(ex);
if (includeDebug) Console.Error.WriteLine(ex);
return false;
}

View File

@@ -284,7 +284,7 @@ namespace SabreTools.Serialization.Wrappers
}
catch (Exception ex)
{
if (includeDebug) Console.WriteLine(ex);
if (includeDebug) Console.Error.WriteLine(ex);
return false;
}

View File

@@ -150,7 +150,7 @@ namespace SabreTools.Serialization.Wrappers
}
catch (Exception ex)
{
if (includeDebug) Console.WriteLine(ex);
if (includeDebug) Console.Error.WriteLine(ex);
return false;
}

View File

@@ -130,7 +130,7 @@ namespace SabreTools.Serialization.Wrappers
}
catch (Exception ex)
{
if (includeDebug) Console.WriteLine(ex);
if (includeDebug) Console.Error.WriteLine(ex);
return false;
}

View File

@@ -140,7 +140,7 @@ namespace SabreTools.Serialization.Wrappers
}
catch (Exception ex)
{
if (includeDebug) Console.WriteLine(ex);
if (includeDebug) Console.Error.WriteLine(ex);
return false;
}

View File

@@ -160,7 +160,7 @@ namespace SabreTools.Serialization.Wrappers
}
catch (Exception ex)
{
if (includeDebug) Console.WriteLine(ex);
if (includeDebug) Console.Error.WriteLine(ex);
return false;
}
}
@@ -192,7 +192,7 @@ namespace SabreTools.Serialization.Wrappers
}
catch (Exception ex)
{
if (includeDebug) Console.WriteLine(ex);
if (includeDebug) Console.Error.WriteLine(ex);
return false;
}
}
@@ -264,7 +264,7 @@ namespace SabreTools.Serialization.Wrappers
}
catch (Exception ex)
{
if (includeDebug) Console.WriteLine(ex);
if (includeDebug) Console.Error.WriteLine(ex);
return false;
}
@@ -590,7 +590,7 @@ namespace SabreTools.Serialization.Wrappers
}
catch (Exception ex)
{
if (includeDebug) Console.WriteLine(ex);
if (includeDebug) Console.Error.WriteLine(ex);
return [];
}
}

View File

@@ -158,7 +158,7 @@ namespace SabreTools.Serialization.Wrappers
}
catch (Exception ex)
{
if (includeDebug) Console.WriteLine(ex);
if (includeDebug) Console.Error.WriteLine(ex);
return false;
}

View File

@@ -170,7 +170,7 @@ namespace SabreTools.Serialization.Wrappers
}
catch (Exception ex)
{
if (includeDebug) Console.WriteLine(ex);
if (includeDebug) Console.Error.WriteLine(ex);
return false;
}
}

View File

@@ -263,7 +263,7 @@ namespace SabreTools.Serialization.Wrappers
}
catch (Exception ex)
{
if (includeDebug) Console.WriteLine(ex);
if (includeDebug) Console.Error.WriteLine(ex);
return false;
}

View File

@@ -169,7 +169,7 @@ namespace SabreTools.Serialization.Wrappers
}
catch (Exception ex)
{
if (includeDebug) Console.WriteLine(ex);
if (includeDebug) Console.Error.WriteLine(ex);
return false;
}

View File

@@ -238,7 +238,7 @@ namespace SabreTools.Serialization.Wrappers
}
catch (Exception ex)
{
if (includeDebug) Console.WriteLine(ex);
if (includeDebug) Console.Error.WriteLine(ex);
return false;
}
finally
@@ -284,7 +284,7 @@ namespace SabreTools.Serialization.Wrappers
}
catch (Exception ex)
{
if (includeDebug) Console.WriteLine(ex);
if (includeDebug) Console.Error.WriteLine(ex);
return false;
}

View File

@@ -157,7 +157,7 @@ namespace SabreTools.Serialization.Wrappers
}
catch (Exception ex)
{
if (includeDebug) Console.WriteLine(ex);
if (includeDebug) Console.Error.WriteLine(ex);
return false;
}

View File

@@ -169,7 +169,7 @@ namespace SabreTools.Serialization.Wrappers
}
catch (Exception ex)
{
if (includeDebug) Console.WriteLine(ex);
if (includeDebug) Console.Error.WriteLine(ex);
return false;
}