scripttype "scriptname" failed at line linenumber: description

Synopsis
Assume a parent script calls some child script (as a subroutine), and the child script has a SYNTAX or HALT condition that it doesn't trap. Normally, that would abort both the parent and child scripts. But Reginald supports a parent trapping SYNTAX, HALT (and other conditions) on behalf of the child script. So, if the child doesn't want to be informed of a given condition, then the parent may choose to be informed of that condition instead.

This error message is a result of a parent script trapping a condition that was actually triggered in the child. scripttype tells whether the child was a disk-based "script" or a "macro". scriptname is the name of the child script. linenumber is the line number within the child script where the error occurred (ie, when the condition was triggered). description tells why the condition was triggered.