diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2018-06-04 18:11:52 +0100 |
---|---|---|
committer | knownexus <phillip.smyth@codethink.co.uk> | 2018-07-31 17:31:36 +0100 |
commit | 553df1084dc0b2b10fb13b00549aa358eb1049bb (patch) | |
tree | e5c3118be74d6b9a14f62933a6ec1758163b4d0a /buildstream/_frontend/widget.py | |
parent | f4573df3de42255f330020804bc62512eb5339d4 (diff) | |
download | buildstream-553df1084dc0b2b10fb13b00549aa358eb1049bb.tar.gz |
_frontend/widget.py: Render cached failures differently to successes
Diffstat (limited to 'buildstream/_frontend/widget.py')
-rw-r--r-- | buildstream/_frontend/widget.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/buildstream/_frontend/widget.py b/buildstream/_frontend/widget.py index 78f444616..24e146c16 100644 --- a/buildstream/_frontend/widget.py +++ b/buildstream/_frontend/widget.py @@ -368,7 +368,9 @@ class LogLine(Widget): if consistency == Consistency.INCONSISTENT: line = p.fmt_subst(line, 'state', "no reference", fg='red') else: - if element._cached_success(): + if element._cached_failure(): + line = p.fmt_subst(line, 'state', "failed", fg='red') + elif element._cached_success(): line = p.fmt_subst(line, 'state', "cached", fg='magenta') elif consistency == Consistency.RESOLVED: line = p.fmt_subst(line, 'state', "fetch needed", fg='red') |