Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.3   11.4   11.5   12.0   12.1   12.2   12.3   12.4   12.5   13.0    Statistic    FMM    Blog  


Queries error counter.

Component Version macOS Windows Linux Server iOS SDK
Plugin 12.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "HadErrors" )




Returns number or error.


Queries error counter.
Call this on the end of a script to query how many errors happened.
You need to call ClearErrors functions before on the start of the script to reset counter.

The counter increases whenever a plugin function returns an error.
See also IsError function.

Errors are tracked per thread, so on a server each PSoS session has its own error log. And it includes errors from subscripts.

Release notes

Blog Entries

Created 28th April 2022, last changed 23th June 2022

GetSystemUIModeOptions - Hash.CRC32

Feedback: Report problem or ask question.

Start Chat