From c6276cfe673a6e140ac4f51e83ae2f8dd4618b5c Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Fri, 3 Sep 2021 23:51:35 +0000 Subject: [PATCH] fixed a typo (#5170) Signed-off-by: Modular Magician --- .changelog/5170.txt | 3 +++ google/resource_cloudfunctions_function.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .changelog/5170.txt 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)