diff --git a/.changelog/5170.txt b/.changelog/5170.txt new file mode 100644 index 00000000000..538697cdf8b --- /dev/null +++ b/.changelog/5170.txt @@ -0,0 +1,3 @@ +```release-note:bug +functions: fixed a error message on `google_cloudfunctions_function` +``` diff --git a/google/resource_cloudfunctions_function.go b/google/resource_cloudfunctions_function.go index faceb171b91..f7ae761c6fe 100644 --- a/google/resource_cloudfunctions_function.go +++ b/google/resource_cloudfunctions_function.go @@ -655,7 +655,7 @@ func resourceCloudFunctionsUpdate(d *schema.ResourceData, meta interface{}) erro d.Timeout(schema.TimeoutUpdate)) }, d.Timeout(schema.TimeoutUpdate)) if rerr != nil { - return fmt.Errorf("Error while updating cloudfunction configuration: %s", err) + return fmt.Errorf("Error while updating cloudfunction configuration: %s", rerr) } } d.Partial(false)