p11helper: clarify error message

https://fedorahosted.org/freeipa/ticket/4657

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Petr Spacek 2015-03-04 20:35:17 +01:00 committed by Tomas Babej
parent 40f56e5f38
commit 8fefd63152

View File

@ -237,7 +237,9 @@ int check_return_value(CK_RV rv, const char *message) {
(&errmsg, "Error at %s: 0x%x\n", message, (unsigned int) rv) (&errmsg, "Error at %s: 0x%x\n", message, (unsigned int) rv)
== -1) { == -1) {
PyErr_SetString(ipap11helperError, PyErr_SetString(ipap11helperError,
"DOUBLE ERROR: Creating the error message caused an error"); "An error occured during error message generation. "
"Please report this problem. Developers will use "
"a crystal ball to find out the root cause.");
return 0; return 0;
} }
if (errmsg != NULL) { if (errmsg != NULL) {