ERROR - A WHEN block specifies both an attached and detached error handler. Change the WHEN block to specify either an attached or detached error handler.