printing red exception message instead of stack trace, and catching bad secret error