Remove error object as it's not used