summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2013-03-08 13:01:53 +0100
committerLars-Dominik Braun <lars@6xq.net>2013-03-08 13:02:13 +0100
commit1154b01448a4545d6b90aff4e3152c44e5641d2b (patch)
tree3d9cbb69a3a9bf0dcca93227893fe6e02f6fb734 /src
parent847ca4193e3fbc5b27285979888ab364bbf1792e (diff)
downloadpianobar-windows-1154b01448a4545d6b90aff4e3152c44e5641d2b.tar.gz
pianobar-windows-1154b01448a4545d6b90aff4e3152c44e5641d2b.tar.bz2
pianobar-windows-1154b01448a4545d6b90aff4e3152c44e5641d2b.zip
piano: Add error message for code 1039
See #352.
Diffstat (limited to 'src')
-rw-r--r--src/libpiano/piano.c4
-rw-r--r--src/libpiano/piano.h2
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 *,