remove the deprecated `error` field from `end-file`
