Skip to content

Commit a7ce155

Browse files
authored
rethrow errors to ensure it bubbles up to the resolver in Resources (#4603)
1 parent d7669cd commit a7ce155

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/FunctionAppResolver.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export class FunctionAppResolver implements AppResourceResolver {
3838

3939
public async resolveResource(subContext: ISubscriptionContext, resource: AppResource): Promise<ResolvedFunctionAppResource | ResolvedContainerizedFunctionAppResource | undefined> {
4040
return await callWithTelemetryAndErrorHandling('resolveResource', async (context: IActionContext) => {
41+
context.errorHandling.rethrow = true; // rethrow errors to ensure it bubbles up to the resolver
4142
if (this.siteCacheLastUpdated < Date.now() - 1000 * 3) {
4243
// do this before the graph client is created because the async graph client create takes enough time to mess up the following resolves
4344
this.loaded = false;

0 commit comments

Comments
 (0)