issue #20874: trap for common error