ascot diagnostics

A3913

Information: {what} is beyond what ascot checks

The $ETRAP code is not a single Goto Label, or the value given to $ZTRAP, $ETRAP, $ECODE or ZQUIT is not a literal. ascot takes the value on trust and does not check what happens when an error comes. IRIS compiles it, and compiles $ETRAP code only when an error runs it, so a mistake in that code is found only then. Nothing needs changing for IRIS. A literal label or a Try block would let ascot check the handling.

IRIS compiles the example.

ROUTINE Demo.NotChecked
Main
    Set $ETrap = "Do Report Quit" //! A3913
    Set rate = ^Demo.NotChecked("rate")
    Write rate, !
    Quit
Report
    Write "no rate: ", $ZError, !
    Quit

All diagnostics