tests: better error message on ctlsock query failure

This commit is contained in:
Jakob Unterwurzacher 2021-06-26 18:43:15 +02:00
parent 45648e567a
commit 1f29542b39

View File

@ -66,7 +66,7 @@ func TestCtlSockDecrypt(t *testing.T) {
}
response := test_helpers.QueryCtlSock(t, sock, req)
if response.Result == "" || response.ErrNo != 0 {
t.Fatalf("got an error reply: %+v", response)
t.Fatalf("got an error for query %+v: %+v", req, response)
}
// Check if the encrypted path actually exists
cPath := response.Result