Skip to content

Commit

Permalink
Clean up crate_universe output printing (#727)
Browse files Browse the repository at this point in the history
This avoids a weird double-printing of errors we used to get.

Co-authored-by: UebelAndre <andre.brisco@gmail.com>
  • Loading branch information
illicitonion and UebelAndre committed May 10, 2021
1 parent 62b64ee commit fdc04e1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crate_universe/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,10 @@ def _crate_universe_resolve_impl(repository_ctx):
"RUSTC": str(rustc_path),
"RUST_LOG": "info",
},
quiet = False,
)
if result.stderr:
print("Output from resolver: " + result.stderr) # buildifier: disable=print
if result.return_code != 0:
fail("Error resolving deps:\n" + result.stdout + "\n" + result.stderr)
fail("Error resolving crate_universe deps - see above output for more information")

repository_ctx.file("BUILD.bazel")

Expand Down

0 comments on commit fdc04e1

Please sign in to comment.