Fix to properly print errors from cli.run()
Merge pull request #3784 from basepi/autherrorfix

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