diff --git a/asset/snippets/exportAssets.js b/asset/snippets/exportAssets.js index 64f64a02a09..a3fcbfba736 100644 --- a/asset/snippets/exportAssets.js +++ b/asset/snippets/exportAssets.js @@ -49,7 +49,9 @@ async function main(dumpFilePath) { // Do things with with the response. console.log(result); } - exportAssets(); + exportAssets().catch((err) => { + throw err; + }); // [END asset_quickstart_export_assets] }