Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7dc585f authored by Zi Wang's avatar Zi Wang Committed by Gerrit Code Review
Browse files

Merge "Return error for unsupported context in outputFilesForModuleFromProvider" into main

parents 865b8770 7a47bd3a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2504,8 +2504,9 @@ func outputFilesForModuleFromProvider(ctx PathContext, module blueprint.Module,
	} else if cta, isCta := ctx.(*singletonContextAdaptor); isCta {
		providerData, _ := cta.moduleProvider(module, OutputFilesProvider)
		outputFiles, _ = providerData.(OutputFilesInfo)
	} else {
		return nil, fmt.Errorf("unsupported context %q in method outputFilesForModuleFromProvider", reflect.TypeOf(ctx))
	}
	// TODO: Add a check for skipped context

	if outputFiles.isEmpty() {
		return nil, OutputFilesProviderNotSet