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

Commit d00b5629 authored by Christopher Parsons's avatar Christopher Parsons Committed by Gerrit Code Review
Browse files

Merge "Write cquery.out even without error"

parents 7e6f5d85 429f540b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -767,9 +767,9 @@ func (context *bazelContext) InvokeBazel(config Config) error {
	cqueryOutput, cqueryErr, err := context.issueBazelCommand(context.paths, bazel.CqueryBuildRootRunName, cqueryCmd,
		"--output=starlark", "--starlark:file="+absolutePath(cqueryFileRelpath))
	if err != nil {
		_ = ioutil.WriteFile(filepath.Join(soongInjectionPath, "cquery.out"), []byte(cqueryOutput), 0666)
		return err
	}
	if err != nil {
	if err = ioutil.WriteFile(filepath.Join(soongInjectionPath, "cquery.out"), []byte(cqueryOutput), 0666); err != nil {
		return err
	}