Skip to content

Commit 2fbf1d6

Browse files
committed
fix(gce): fix raise_on_error() to use proper attribute for GoogleAPICallErrors
1 parent 566de5d commit 2fbf1d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycloudlib/gce/util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
def raise_on_error(response):
1414
"""Look for errors in response and raise if found."""
1515
if isinstance(response, GoogleAPICallError):
16-
raise GceException(f"Received error(s)!\nErrors: {response.error_message}")
16+
raise GceException(f"Received error(s)!\nErrors: {response.message}")
1717
if isinstance(response, ExtendedOperation):
1818
if response.error_code != 0:
1919
raise GceException(f"Received error(s)!\nErrors: {response.error_message}")

0 commit comments

Comments
 (0)