Browse code

dbcluster: Add RPC error message wheb listing connections and no cluster is found

Olle E. Johansson authored on 03/01/2022 14:04:10
Showing 1 changed files
... ...
@@ -189,6 +189,7 @@ static void dbcl_rpc_list_connections(rpc_t *rpc, void *c)
189 189
 	if(cls==NULL)
190 190
 	{
191 191
 		LM_ERR("cluster not found [%.*s]\n", cluster.len, cluster.s);
192
+		rpc->fault(c, 500, "Cluster not found");
192 193
 		return;
193 194
 	}
194 195