mirror of https://github.com/getdnsapi/getdns.git
Improved error message text
This commit is contained in:
parent
ce29c4b899
commit
3d108bb105
|
@ -54,25 +54,25 @@ struct event_base;
|
|||
#define GETDNS_RETURN_GENERIC_ERROR 1
|
||||
#define GETDNS_RETURN_GENERIC_ERROR_TEXT Generic error
|
||||
#define GETDNS_RETURN_BAD_DOMAIN_NAME 300
|
||||
#define GETDNS_RETURN_BAD_DOMAIN_NAME_TEXT Badly-formed domain name in first argument
|
||||
#define GETDNS_RETURN_BAD_DOMAIN_NAME_TEXT Badly-formed domain name
|
||||
#define GETDNS_RETURN_BAD_CONTEXT 301
|
||||
#define GETDNS_RETURN_BAD_CONTEXT_TEXT Bad value for a context type
|
||||
#define GETDNS_RETURN_BAD_CONTEXT_TEXT Bad context type
|
||||
#define GETDNS_RETURN_CONTEXT_UPDATE_FAIL 302
|
||||
#define GETDNS_RETURN_CONTEXT_UPDATE_FAIL_TEXT Did not update the context
|
||||
#define GETDNS_RETURN_CONTEXT_UPDATE_FAIL_TEXT Context update failure
|
||||
#define GETDNS_RETURN_UNKNOWN_TRANSACTION 303
|
||||
#define GETDNS_RETURN_UNKNOWN_TRANSACTION_TEXT An attempt was made to cancel a callback with a transaction_id that is not recognized
|
||||
#define GETDNS_RETURN_UNKNOWN_TRANSACTION_TEXT Unknown transaction id
|
||||
#define GETDNS_RETURN_NO_SUCH_LIST_ITEM 304
|
||||
#define GETDNS_RETURN_NO_SUCH_LIST_ITEM_TEXT A helper function for lists had an index argument that was too high.
|
||||
#define GETDNS_RETURN_NO_SUCH_LIST_ITEM_TEXT List index out of bounds
|
||||
#define GETDNS_RETURN_NO_SUCH_DICT_NAME 305
|
||||
#define GETDNS_RETURN_NO_SUCH_DICT_NAME_TEXT A helper function for dicts had a name argument that for a name that is not in the dict.
|
||||
#define GETDNS_RETURN_NO_SUCH_DICT_NAME_TEXT Key not found in dict
|
||||
#define GETDNS_RETURN_WRONG_TYPE_REQUESTED 306
|
||||
#define GETDNS_RETURN_WRONG_TYPE_REQUESTED_TEXT A helper function was supposed to return a certain type for an item, but the wrong type was given.
|
||||
#define GETDNS_RETURN_WRONG_TYPE_REQUESTED_TEXT Incorrect type in request
|
||||
#define GETDNS_RETURN_NO_SUCH_EXTENSION 307
|
||||
#define GETDNS_RETURN_NO_SUCH_EXTENSION_TEXT A name in the extensions dict is not a valid extension.
|
||||
#define GETDNS_RETURN_NO_SUCH_EXTENSION_TEXT Invalid extension name
|
||||
#define GETDNS_RETURN_EXTENSION_MISFORMAT 308
|
||||
#define GETDNS_RETURN_EXTENSION_MISFORMAT_TEXT One or more of the extensions has a bad format.
|
||||
#define GETDNS_RETURN_EXTENSION_MISFORMAT_TEXT Extension format error
|
||||
#define GETDNS_RETURN_DNSSEC_WITH_STUB_DISALLOWED 309
|
||||
#define GETDNS_RETURN_DNSSEC_WITH_STUB_DISALLOWED_TEXT A query was made with a context that is using stub resolution and a DNSSEC extension specified.
|
||||
#define GETDNS_RETURN_DNSSEC_WITH_STUB_DISALLOWED_TEXT Query with DNSSEC extensions and stub resolution not permitted
|
||||
|
||||
/** @}
|
||||
*/
|
||||
|
|
|
@ -36,30 +36,30 @@ getdns_lookup_table getdns_error_str[] = {
|
|||
,
|
||||
{GETDNS_RETURN_BAD_DOMAIN_NAME, "Badly-formed domain name"}
|
||||
,
|
||||
{GETDNS_RETURN_BAD_CONTEXT, "Bad value for a context type"}
|
||||
{GETDNS_RETURN_BAD_CONTEXT, "Bad context type"}
|
||||
,
|
||||
{GETDNS_RETURN_CONTEXT_UPDATE_FAIL, "Did not update the context"}
|
||||
{GETDNS_RETURN_CONTEXT_UPDATE_FAIL, "Context update failure"}
|
||||
,
|
||||
{GETDNS_RETURN_UNKNOWN_TRANSACTION,
|
||||
"An attempt was made to cancel a callback with a transaction_id that is not recognized"}
|
||||
"Unknown transaction id"}
|
||||
,
|
||||
{GETDNS_RETURN_NO_SUCH_LIST_ITEM,
|
||||
"A helper function for lists had an index argument that was too high"}
|
||||
"List index out of bounds"}
|
||||
,
|
||||
{GETDNS_RETURN_NO_SUCH_DICT_NAME,
|
||||
"A helper function for dicts had a name argument that for a name that is not in the dict"}
|
||||
"Key not found in dict"}
|
||||
,
|
||||
{GETDNS_RETURN_WRONG_TYPE_REQUESTED,
|
||||
"A helper function was supposed to return a certain type for an item, but the wrong type was given"}
|
||||
"Incorrect type in request"}
|
||||
,
|
||||
{GETDNS_RETURN_NO_SUCH_EXTENSION,
|
||||
"A name in the extensions dict is not a valid extension"}
|
||||
"Invalid extension name"}
|
||||
,
|
||||
{GETDNS_RETURN_EXTENSION_MISFORMAT,
|
||||
"One or more of the extensions is has a bad format"}
|
||||
"Extension format error"}
|
||||
,
|
||||
{GETDNS_RETURN_DNSSEC_WITH_STUB_DISALLOWED,
|
||||
"A query was made with a context that is using stub resolution and a DNSSEC extension specified"}
|
||||
"Query with DNSSEC extensions andstub resolution not permitted"}
|
||||
,
|
||||
{0, ""}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue