mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
tests: virtnettlscontexttest: Use virGetLastErrorMessage()
Use virGetLastErrorMessage() rather than open code it
This commit is contained in:
parent
f4a212d7f9
commit
4902231777
@ -90,13 +90,12 @@ static int testTLSContextInit(const void *opaque)
|
||||
goto cleanup;
|
||||
}
|
||||
} else {
|
||||
virErrorPtr err = virGetLastError();
|
||||
if (!data->expectFail) {
|
||||
VIR_WARN("Unexpected failure %s against %s",
|
||||
data->cacrt, data->crt);
|
||||
goto cleanup;
|
||||
}
|
||||
VIR_DEBUG("Got error %s", err ? err->message : "<unknown>");
|
||||
VIR_DEBUG("Got error %s", virGetLastErrorMessage());
|
||||
}
|
||||
|
||||
ret = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user