Event manager improvements. Changed to console.writeline instead of diagnostics
This commit is contained in:
25
Aurora/Utils/Combine.cs
Normal file
25
Aurora/Utils/Combine.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using System.Linq;
|
||||
|
||||
namespace Aurora.Utils
|
||||
{
|
||||
public static class Misc
|
||||
{
|
||||
public static string Combine(string[] args)
|
||||
{
|
||||
string outString = "";
|
||||
foreach (string arg in args)
|
||||
{
|
||||
if (arg == args.Last())
|
||||
{
|
||||
outString += arg;
|
||||
}
|
||||
else
|
||||
{
|
||||
outString += arg + ":";
|
||||
}
|
||||
}
|
||||
|
||||
return outString;
|
||||
}
|
||||
}
|
||||
}
|
@ -73,7 +73,7 @@ namespace Aurora.Utils
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
System.Diagnostics.Debug.WriteLine($"{ex.GetType()} {ex.Message}\n{ex.StackTrace}");
|
||||
Console.WriteLine($"{ex.GetType()} {ex.Message}\n{ex.StackTrace}");
|
||||
ex = ex.InnerException;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user