fix console crash when it cannot connect

This commit is contained in:
Radu Ioan Fericean
2015-04-22 19:14:50 +03:00
parent 76c127ef59
commit 188ff2010c

View File

@@ -84,6 +84,7 @@ func executeCommand(command string) {
param = param.(*console.StringWrapper).Item
}
//log.Printf("Param: %+v", param)
if rpcErr := client.Call(cmd.RpcMethod(), param, res); rpcErr != nil {
fmt.Println("Error executing command: " + rpcErr.Error())
} else {