@shushed/helpers 0.0.198-v2-20251105081851 → 0.0.198-v2-20251105084106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -374,13 +374,14 @@ class PubSubHelper extends runtime_1.default {
|
|
|
374
374
|
nextMetadata = nextMetadata || {};
|
|
375
375
|
nextMetadata.bigqueryConfig = null;
|
|
376
376
|
}
|
|
377
|
+
this.logging.log('ensureSubscribtionExists updating subscription ' + subscriptionName, nextMetadata);
|
|
377
378
|
if (subscription && nextMetadata) {
|
|
378
379
|
try {
|
|
379
380
|
await subscription.setMetadata(nextMetadata);
|
|
380
381
|
}
|
|
381
382
|
catch (err) {
|
|
382
383
|
this.logging.error('updateSubscription received error while setting metadata', err.message, err.stack);
|
|
383
|
-
throw new Error('Invariant: While updating subscription - ' + err.message);
|
|
384
|
+
throw new Error('Invariant: While updating subscription - ' + subscriptionName + ' - ' + err.message);
|
|
384
385
|
}
|
|
385
386
|
}
|
|
386
387
|
return nextMetadata;
|