From 6c483773186eb351f7c9582e9b127b75fcbda0e4 Mon Sep 17 00:00:00 2001 From: Martino Luca Date: Tue, 5 Jul 2016 06:25:00 -0700 Subject: [PATCH] Emit friendly message when stats aggregation fails running Summary: Emit a simple info message on terminal whenever aggregation of stats fails for whatever reason, details about the failure will still be available in `toplevel.log` Reviewed By: jvillard Differential Revision: D3516339 fbshipit-source-id: fe24d64 --- infer/lib/python/inferlib/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infer/lib/python/inferlib/utils.py b/infer/lib/python/inferlib/utils.py index 1cabb60a1..e381ea182 100644 --- a/infer/lib/python/inferlib/utils.py +++ b/infer/lib/python/inferlib/utils.py @@ -141,7 +141,8 @@ def run_infer_stats_aggregator(infer_out, buck_out=None): except subprocess.CalledProcessError as exc: output = 'Error while aggregating stats ({ec}): {output}'\ .format(ec=exc.returncode, output=exc.output) - stderr(output) + stderr('Info: aggregated performance data are not available in ' + 'this run') return output