From 658a882cca5b9fec23828969bed3dbfc76b82252 Mon Sep 17 00:00:00 2001 From: Bitl Date: Sat, 29 Oct 2022 16:17:55 -0700 Subject: [PATCH] added console exceptions --- Novetus/NovetusCore/StorageAndFunctions/Util.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Novetus/NovetusCore/StorageAndFunctions/Util.cs b/Novetus/NovetusCore/StorageAndFunctions/Util.cs index 0fc6dfe..b9f5dd4 100644 --- a/Novetus/NovetusCore/StorageAndFunctions/Util.cs +++ b/Novetus/NovetusCore/StorageAndFunctions/Util.cs @@ -584,7 +584,11 @@ public static class Util #if LAUNCHER || URI || BASICLAUNCHER public static void LogExceptions(Exception ex) { - LogPrint("EXCEPTION|MESSAGE: " + (ex.Message != null ? ex.Message.ToString() : "N/A"), 2); + string message = (ex.Message != null ? ex.Message.ToString() : "N/A"); + + ConsolePrint(ex.Source + " Exception: " + message, 2, false, true); + + LogPrint("EXCEPTION|MESSAGE: " + message, 2); LogPrint("EXCEPTION|STACK TRACE: " + (!string.IsNullOrWhiteSpace(ex.StackTrace) ? ex.StackTrace : "N/A"), 2); LogPrint("EXCEPTION|ADDITIONAL INFO: " + (ex != null ? ex.ToString() : "N/A"), 2); }