Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


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

This function is free to use.

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

GetSystemUIModeOptions - Hash.CRC32