Skip to content

Commit

Permalink
Added "Unknown Error" Error message
Browse files Browse the repository at this point in the history
For real this time!
  • Loading branch information
TheCrazyInsanity authored Oct 24, 2021
1 parent 7632df3 commit 06d9fcb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ public static int CountCharacters(string source)

public static void CatchException(Exception e)
{
Console.WriteLine("Unknown Error")
Console.WriteLine("Unknown Error");
//Added to make it easier to deal with inside of node
Console.WriteLine("\r\n===========\r\nException: " + e.ToString() + " | " + e.InnerException?.ToString());
//Above should still be printed, will fuck up the node part unless i find a good way to pass it through, but it will be pretty obvious SOMETHING is wrong if it fucks up the node part.
//Console.WriteLine("\r\n===========\r\nException: " + e.ToString() + " | " + e.InnerException?.ToString());
//*Outdated* Above should still be printed, will fuck up the node part unless i find a good way to pass it through, but it will be pretty obvious SOMETHING is wrong if it fucks up the node part.
//Console.WriteLine();
Environment.Exit(2);
}
Expand Down

0 comments on commit 06d9fcb

Please sign in to comment.