diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2013-03-08 13:01:53 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2013-03-08 13:02:13 +0100 |
commit | 1154b01448a4545d6b90aff4e3152c44e5641d2b (patch) | |
tree | 3d9cbb69a3a9bf0dcca93227893fe6e02f6fb734 /src/libpiano | |
parent | 847ca4193e3fbc5b27285979888ab364bbf1792e (diff) | |
download | pianobar-1154b01448a4545d6b90aff4e3152c44e5641d2b.tar.gz pianobar-1154b01448a4545d6b90aff4e3152c44e5641d2b.tar.bz2 pianobar-1154b01448a4545d6b90aff4e3152c44e5641d2b.zip |
piano: Add error message for code 1039
See #352.
Diffstat (limited to 'src/libpiano')
-rw-r--r-- | src/libpiano/piano.c | 4 | ||||
-rw-r--r-- | src/libpiano/piano.h | 2 |
2 files changed, 5 insertions, 1 deletions
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 *, |