You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: BHoM_Engine/Compute/RecordEvent.cs
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -114,7 +114,7 @@ public static bool RecordEvent(Event newEvent)
114
114
OnEventRecorded(newEvent);//Only raise an event if we're not in switched off mode
115
115
}
116
116
117
-
if(newEvent.Type==EventType.Error&&m_ThrowError&&!m_SuppressError)//Only throw the event as an exception if someone has asked us to throw it, AND we aren't suppressing them
117
+
if(newEvent.Type==EventType.Error&&m_ThrowError)//Only throw the event as an exception if someone has asked us to throw it
privatestaticboolm_ThrowError=false;//Default to false - do not throw errors as exceptions. However, if a user (developer user or UI user) has unsuppressed this, then errors will be thrown for try/catch statements to handle.
152
+
internalstaticboolm_ThrowError{get;privateset;}=false;//Default to false - do not throw errors as exceptions. However, if a user (developer user or UI user) has unsuppressed this, then errors will be thrown for try/catch statements to handle.
153
153
//ToDo: Discuss whether we want this to be true by default and have BHoM_UI switch it off on load, or keep as is. FYI @alelom
0 commit comments