public static void Error(string msg, bool showOnScreen = false, AssemblyName callingAssembly = null)
        {
            Console.WriteLine($"[{(callingAssembly ?? ModName).Name}:ERROR] {msg}");

            if (showOnScreen)
            {
                ErrorMessage.AddError(msg);
            }
        }
Example #2
0
        public static void Error(string msg, bool showOnScreen = false, Assembly callingAssembly = null)
        {
            string name = (callingAssembly ?? Assembly.GetCallingAssembly()).GetName().Name;

            Console.WriteLine($"[{name}:ERROR] {msg}");

            if (showOnScreen)
                ErrorMessage.AddError(msg);
        }
Example #3
0
        public static void Error(string msg, bool showOnScreen = false)
        {
            string name = Assembly.GetCallingAssembly().GetName().Name;

            Console.WriteLine($"[{name}] ERROR: {msg}");

            if (showOnScreen)
            {
                ErrorMessage.AddError(msg);
            }
        }