d8c33bc59e
the func would return when `diags.HasErrors()` but this does not mean that diags is empty.
the func would return when `diags.HasErrors()` but this does not mean that diags is empty.