public static void dumpErrorToConsole(UIWidgetsErrorDetails details, bool forceReport = false) { D.assert(details != null); D.assert(details.exception != null); bool reportError = !details.silent; D.assert(() => { reportError = true; return(true); }); if (!reportError && !forceReport) { return; } if (_errorCount == 0 || forceReport) { Debug.LogError(details.ToString()); } else { Debug.LogWarning("Another exception was thrown: " + details); } _errorCount += 1; }
public static void dumpErrorToConsole(UIWidgetsErrorDetails details, bool forceReport = false) { D.assert(details != null); D.assert(details.exception != null); bool reportError = !details.silent; D.assert(() => { reportError = true; return(true); }); if (!reportError && !forceReport) { return; } D.logError(details.ToString(), details.exception); }