await/async error handling pattern

Skip to first unread message

Bruce Mcpherson

Jul 15, 2019, 12:31:19 PM7/15/19
to Google Apps Script Community
We're still not there on Apps Script, but many of you will be using a more mdern JavaScript dialect in your htmlservice scripts, or perhaps in conjunction with Clasp.

Here's a small tip to remove something that was putting me off using async/await - maybe you too.
Putting try/catch around stuff again seems messy. So what to do ?

Steven Bazyl

Jul 15, 2019, 12:57:54 PM7/15/19
Yep, this pattern has been around for a while :) See

You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
Visit this group at
To view this discussion on the web visit
For more options, visit

Bruce Mcpherson

Jul 15, 2019, 5:37:00 PM7/15/19
Reply all
Reply to author
0 new messages