Skip to content

Commit

Permalink
add missing catch and handle error in promise
Browse files Browse the repository at this point in the history
  • Loading branch information
jj22ee committed Sep 20, 2024
1 parent 54b14fb commit 9dabac6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ export class PeriodicExportingMetricReader extends MetricReader {
.waitForAsyncAttributes?.()
.then(doExport, err =>
diag.debug('Error while resolving async portion of resource: ', err)
);
)
.catch(globalErrorHandler);
} else {
await doExport();
}
Expand Down

0 comments on commit 9dabac6

Please sign in to comment.