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

Commit 7a47bd3a authored by mrziwang's avatar mrziwang
Browse files

Return error for unsupported context in outputFilesForModuleFromProvider

Test: CI
Change-Id: I42d2341ea2613a28d403615f3ebccd0067d5501f
parent 96fbf8ba
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