diff --git a/src/pacroller/main.py b/src/pacroller/main.py index f6bf666..e73fef3 100644 --- a/src/pacroller/main.py +++ b/src/pacroller/main.py @@ -252,11 +252,16 @@ def main() -> None: elif args.action == 'status': count = 0 failed = False + for entry in read_db(): + if e := entry.get('error'): + print(e) + failed = True + break for entry in read_db(): if report_dict := entry.get('report'): count += 1 report = checkReport(**report_dict) - if count == 1: + if not failed and count == 1: failed = report.failed print(report.summary(verbose=args.verbose, show_package=True)) if count >= args.max and args.max > 0: