[MonoError] Add error checking macro