cli: add "catch all" for exceptions to sanitize output
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 23 Apr 2016 01:06:14 +0000 (21:06 -0400)
committerAntoine Busque <abusque@efficios.com>
Tue, 26 Apr 2016 17:10:04 +0000 (13:10 -0400)
commit5bc26da4132d4094f39fc853bc8e150394a837ad
tree491b38c265ac4ab9ae82d0cf2e53285e9b14124a
parentee39b19291cc0970fe1170deeafa7f0602c5352d
cli: add "catch all" for exceptions to sanitize output

This prevents the user from seeing Python tracebacks, and in MI
mode, it makes sure that only the error object is printed if there is
an error, wherever this error happens.

Eventually, log statements should be added at strategic locations to
optionally provide more information about a failure to the user (and
to bug reports).

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
lttnganalyses/cli/command.py
This page took 0.023595 seconds and 5 git commands to generate.