Fixes #3760 Fix to properly print errors from cli.run()