Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ace Nassri authored Aug 27, 2018
1 parent 00435d2 commit 5635426
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions functions/helloworld/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,13 @@ def hello_method(request):

def hello_error_1(request):
# [START functions_helloworld_error]
# This WILL NOT be reported to Stackdriver Error
# Reporting, and WILL NOT show up in logs
try:
raise RuntimeError('I failed you')
except:
pass

# This WILL be reported to Stackdriver Error Reporting,
# and WILL terminate the function
raise RuntimeError('I failed you')
Expand Down

0 comments on commit 5635426

Please sign in to comment.