Skip to content

Commit b985509

Browse files
Merge branch 'main' of https://github.com/Azure/AppConfiguration-JavaScriptProvider into zhiyuanliang/tag-filter
2 parents c0d611c + ddd19e0 commit b985509

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AzureAppConfigurationImpl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,10 +500,10 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
500500
} else { // snapshot selector
501501
const snapshot = await this.#getSnapshot(selector.snapshotName);
502502
if (snapshot === undefined) {
503-
throw new Error(`Could not find snapshot with name ${selector.snapshotName}.`);
503+
throw new InvalidOperationError(`Could not find snapshot with name ${selector.snapshotName}.`);
504504
}
505505
if (snapshot.compositionType != KnownSnapshotComposition.Key) {
506-
throw new Error(`Composition type for the selected snapshot with name ${selector.snapshotName} must be 'key'.`);
506+
throw new InvalidOperationError(`Composition type for the selected snapshot with name ${selector.snapshotName} must be 'key'.`);
507507
}
508508
const pageIterator = listConfigurationSettingsForSnapshotWithTrace(
509509
this.#requestTraceOptions,

0 commit comments

Comments
 (0)