services/qingstor: Fix service qingstor error not handled correctly
@@ -216,9 +216,9 @@ func (s *Service) formatError(op string, err error, name string) error {
}
// Handle errors returned by qingstor.
- var e qserror.QingStorError
+ var e *qserror.QingStorError
if errors.As(err, &e) {
- err = formatQingStorError(&e)
+ err = formatQingStorError(e)
}
return &services.ServiceError{
