Skip to content

Commit 0a360ec

Browse files
authored
Put in new region code error_reporting_quickstart [(#1842)](GoogleCloudPlatform/python-docs-samples#1842)
1 parent fb658e9 commit 0a360ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

samples/snippets/api/report_exception.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515

1616
# [START error_reporting]
17+
# [START error_reporting_quickstart]
1718
def simulate_error():
1819
from google.cloud import error_reporting
1920

@@ -23,6 +24,7 @@ def simulate_error():
2324
raise NameError
2425
except Exception:
2526
client.report_exception()
27+
# [END error_reporting_quickstart]
2628
# [END error_reporting]
2729

2830

0 commit comments

Comments
 (0)