diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/errors.h | 1 | ||||
-rw-r--r-- | utils/messages.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/utils/errors.h b/utils/errors.h index a54351530..ac4d38e2b 100644 --- a/utils/errors.h +++ b/utils/errors.h @@ -62,6 +62,7 @@ typedef enum { NSERROR_BAD_REDIRECT, /**< Fetch encountered a bad redirect */ NSERROR_BAD_AUTH, /**< Fetch needs authentication data */ NSERROR_BAD_CERTS, /**< Fetch needs certificate chain check */ + NSERROR_TIMEOUT, /**< Operation timed out */ } nserror; #endif diff --git a/utils/messages.c b/utils/messages.c index 0d2085c08..197d45ea6 100644 --- a/utils/messages.c +++ b/utils/messages.c @@ -333,6 +333,10 @@ const char *messages_get_errorcode(nserror code) case NSERROR_BAD_CERTS: /* Certificate chain verification failure */ return messages_get_ctx("CertificateVerificationNeeded", messages_hash); + + case NSERROR_TIMEOUT: + /* Operation timed out */ + return messages_get_ctx("Timeout", messages_hash); } /* The switch has no default, so the compiler should tell us when we |