`add_error` method to wrap errors object