Skip to content

Commit cac9604

Browse files
Limit onError usages to high level functions (#999)
## Changes <!-- Summary of your changes that are easy to understand --> ## Tests <!-- How is this tested? -->
1 parent 956a9e6 commit cac9604

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

packages/databricks-vscode/src/bundle/models/BundleValidateModel.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export class BundleValidateModel extends BaseModelWithStateCache<BundleValidateS
5252
}
5353
}
5454

55-
@onError({popup: {prefix: "Failed to parse bundle validate ouput"}})
5655
protected async readState(): Promise<BundleValidateState> {
5756
if (this.target === undefined || this.authProvider === undefined) {
5857
return {};

packages/databricks-vscode/src/configuration/models/ConfigModel.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ export class ConfigModel implements Disposable {
177177
/**
178178
* Set target in the state storage and invalidate the configs cache.
179179
*/
180-
@onError({popup: {prefix: "Failed to set target."}})
181180
public async setTarget(target: string | undefined) {
182181
if (target === this._target) {
183182
return;
@@ -248,7 +247,6 @@ export class ConfigModel implements Disposable {
248247
: undefined;
249248
}
250249

251-
@onError({popup: {prefix: "Failed to set config."}})
252250
@Mutex.synchronise("configsMutex")
253251
public async set<T extends keyof ConfigState>(
254252
key: T,

packages/databricks-vscode/src/configuration/models/OverrideableConfigModel.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export class OverrideableConfigModel extends BaseModelWithStateCache<Overrideabl
3333
await this.stateCache.refresh();
3434
}
3535

36-
@onError({popup: {prefix: "Error while reading config overrides"}})
3736
protected async readState() {
3837
if (this.target === undefined) {
3938
return {};

0 commit comments

Comments
 (0)