Commit 8cfb971d authored by Ben Gamari's avatar Ben Gamari 🐢

summarize: Silence superfluous error output

parent 8717428c
......@@ -79,10 +79,11 @@ def show_failures(summary, log_excerpt=100):
print('These packages failed to build:')
print()
for pkg in failed:
print('*', pkg['name'])
print(f"* {pkg['name']} ({pkg['drvPath']})")
print()
proc = subprocess.run(['nix', 'log', pkg['drvPath']],
proc = subprocess.run(['nix', 'log', '--quiet', pkg['drvPath']],
stdout=subprocess.PIPE,
stderr=subprocess.DEVNULL,
encoding='UTF-8')
if proc.returncode != 0:
print(f' Error: Failed to fetch log')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment