mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
fix console crash when it cannot connect
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user