From 1154b01448a4545d6b90aff4e3152c44e5641d2b Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Fri, 8 Mar 2013 13:01:53 +0100 Subject: piano: Add error message for code 1039 See #352. --- src/libpiano/piano.c | 4 ++++ src/libpiano/piano.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/libpiano/piano.c b/src/libpiano/piano.c index 042121e..fac5da5 100644 --- a/src/libpiano/piano.c +++ b/src/libpiano/piano.c @@ -304,6 +304,10 @@ const char *PianoErrorToStr (PianoReturn_t ret) { return "Listener not authorized."; break; + case PIANO_RET_P_RATE_LIMIT: + return "Access denied. Try again later."; + break; + default: return "No error message available."; break; diff --git a/src/libpiano/piano.h b/src/libpiano/piano.h index 00bc744..a5eb87f 100644 --- a/src/libpiano/piano.h +++ b/src/libpiano/piano.h @@ -291,7 +291,7 @@ typedef enum { PIANO_RET_P_LISTENER_NOT_AUTHORIZED = PIANO_RET_OFFSET+1003, PIANO_RET_P_USER_NOT_AUTHORIZED = PIANO_RET_OFFSET+1004, PIANO_RET_P_ZIP_CODE_INVALID = PIANO_RET_OFFSET+1024, - + PIANO_RET_P_RATE_LIMIT = PIANO_RET_OFFSET+1039, } PianoReturn_t; void PianoInit (PianoHandle_t *, const char *, -- cgit v1.2.3