DCS func error

From DCS World Wiki - Hoggitworld.com

Scripting Root

Envrioment: Mission Scripting
Function: error Added with: 1.2.0
Member Of: env
Syntax: function env.error(string log , boolean showMessageBox)
Description: Prints the passed string to the dcs.log with a prefix of 'error'. The optional variable defines whether or not a message box will pop up when the logging occurs.

Return Value: function
Return Example: none
Related Functions: env functions: info, warning, error, setErrorMessageBoxEnabled, getValueDictByKey