From f02a657f0129b30700b2f36956ee37b40cc2da82 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 13 Dec 2016 12:42:43 +0100 Subject: New error code GPG_ERR_TRY_LATER. Signed-off-by: Werner Koch --- NEWS | 1 + doc/errorref.txt | 7 ++++++- src/err-codes.h.in | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 3b3ffb2..21637bc 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,7 @@ Noteworthy changes in version 1.26 (unreleased) [C20/A20/R_] GPG_ERR_UNKNOWN_FLAG NEW. GPG_ERR_INV_ORDER NEW. GPG_ERR_ALREADY_FETCHED NEW. + GPG_ERR_TRY_LATER NEW. GPG_ERR_SYSTEM_BUG NEW. GPG_ERR_DNS_UNKNOWN NEW. GPG_ERR_DNS_SECTION NEW. diff --git a/doc/errorref.txt b/doc/errorref.txt index ce626eb..6cea1b7 100644 --- a/doc/errorref.txt +++ b/doc/errorref.txt @@ -248,7 +248,7 @@ GPG_ERR_NETWORK Network error GPG_ERR_UNKNOWN_HOST Unknown host - Used instead of the non-portbale EHOSTNOTFOUND which is + Used instead of the non-portable EHOSTNOTFOUND which is returned by some systems as a mapping of h_errno's HOST_NOT_FOUND @@ -1033,6 +1033,11 @@ GPG_ERR_ALREADY_FETCHED Already fetched GNUPG: - In Dirmngr used for the libdns error code DNS_EFETCHED. +GPG_ERR_TRY_LATER Try again later + + This indicates that a server asked to try again later; thus it is + different from EAGAIN which is used by the local system. This + code is for example used instead of h_error's TRY_AGAIN. GPG_ERR_SYSTEM_BUG System bug detected diff --git a/src/err-codes.h.in b/src/err-codes.h.in index efc40e4..1c46948 100644 --- a/src/err-codes.h.in +++ b/src/err-codes.h.in @@ -331,6 +331,7 @@ 309 GPG_ERR_UNKNOWN_FLAG Unknown flag 310 GPG_ERR_INV_ORDER Invalid execution order 311 GPG_ERR_ALREADY_FETCHED Already fetched +312 GPG_ERR_TRY_LATER Try again later # This range is free for use. 666 GPG_ERR_SYSTEM_BUG System bug detected -- cgit v1.2.3