throw when onOk, onGenerateScript errors (#12838)

* throw when onOk, onGenerateScript errors

* pr feedback

* remove try catch in onOk && onGenerateScript
This commit is contained in:
Arvind Ranasaria
2020-10-12 17:08:52 -07:00
committed by GitHub
parent bc3527d310
commit 10d3a6b2ba
2 changed files with 7 additions and 16 deletions

View File

@@ -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)