Fixed error message in Bazel aspect.

Fixes: https://github.com/protocolbuffers/upb/issues/391
pull/13171/head
Joshua Haberman 3 years ago
parent e230b32b8c
commit 314e840a77
  1. 2
      bazel/upb_proto_library.bzl

@ -250,7 +250,7 @@ def _upb_proto_aspect_impl(target, ctx, generator, cc_provider, file_provider):
dep_ccinfos += [dep[_UpbDefsWrappedCcInfo].cc_info for dep in deps if _UpbDefsWrappedCcInfo in dep]
if generator == "upbdefs":
if _UpbWrappedCcInfo not in target:
fail("Target should have _UpbDefsWrappedCcInfo provider")
fail("Target should have _UpbWrappedCcInfo provider")
dep_ccinfos += [target[_UpbWrappedCcInfo].cc_info]
cc_info = _cc_library_func(
ctx = ctx,

Loading…
Cancel
Save