The ISO spec for the component file interface says: "The functions described here must be written so that they do not suspend. Any errors encountered or detected must be passed to the context from which the function was invoked."
I believe that means that the function's "cannot be suspended" attribute must be set. I've arranged for each function in the component file API to have the "cannot be suspended" bit set using 0 1 0 0⎕fx ⎕cr 'function name' Errors in the functions so attributed still display the line number at which the error occurred. According to pg. 295 of the ISO spec, I should see only the function name on the state indicator.