pipeline: adjust error code for internal function