diff --git a/error_reporting/api/report_exception.py b/error_reporting/api/report_exception.py index 31ef99b07e2c..d1312e61d595 100644 --- a/error_reporting/api/report_exception.py +++ b/error_reporting/api/report_exception.py @@ -14,6 +14,7 @@ # [START error_reporting] +# [START error_reporting_quickstart] def simulate_error(): from google.cloud import error_reporting @@ -23,6 +24,7 @@ def simulate_error(): raise NameError except Exception: client.report_exception() +# [END error_reporting_quickstart] # [END error_reporting]