Customize error reporting for connection failed exceptions in CLI