Skip to content

Commit a48a9af

Browse files
committed
Issue warning if performance report cannot be produced
1 parent bb5a828 commit a48a9af

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

reframe/frontend/cli.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1592,10 +1592,13 @@ def module_unuse(*paths):
15921592
data = reporting.performance_compare(
15931593
rt.get_option('general/0/perf_report_spec'), report
15941594
)
1595-
except errors.ReframeError as err:
1595+
except Exception as err:
15961596
printer.warning(
15971597
f'failed to generate performance report: {err}'
15981598
)
1599+
printer.verbose(
1600+
''.join(traceback.format_exception(*sys.exc_info()))
1601+
)
15991602
else:
16001603
printer.performance_report(data)
16011604

@@ -1637,6 +1640,9 @@ def module_unuse(*paths):
16371640
printer.warning(
16381641
f'failed to store results in the database: {e}'
16391642
)
1643+
printer.verbose(
1644+
''.join(traceback.format_exception(*sys.exc_info()))
1645+
)
16401646
else:
16411647
printer.info('Current session stored with UUID: '
16421648
f'{sess_uuid}')

0 commit comments

Comments
 (0)