mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-03 01:25:38 -05:00
throw when onOk, onGenerateScript errors (#12838)
* throw when onOk, onGenerateScript errors * pr feedback * remove try catch in onOk && onGenerateScript
This commit is contained in:
@@ -446,7 +446,7 @@ async function processOptionsTypeField(context: FieldContext): Promise<void> {
|
||||
description: '',
|
||||
level: azdata.window.MessageLevel.Error
|
||||
};
|
||||
context.fieldInfo.options.values = [];
|
||||
throw e;
|
||||
}
|
||||
context.fieldInfo.subFields = context.fieldInfo.subFields || [];
|
||||
}
|
||||
@@ -483,7 +483,7 @@ async function configureOptionsSourceSubfields(context: FieldContext, optionsSou
|
||||
description: '',
|
||||
level: azdata.window.MessageLevel.Error
|
||||
};
|
||||
return '';
|
||||
throw e;
|
||||
}
|
||||
},
|
||||
isPassword: await optionsSourceProvider.getIsPassword!(variableKey)
|
||||
|
||||
Reference in New Issue
Block a user