Throws exception when failed to get roles from Chef Server
Fix bug when thrift service sets error msg