diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2012-06-07 16:21:37 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2012-06-07 16:26:17 +0200 |
commit | b32348d88f700f4a3b5fb3a95f7ee40336952230 (patch) | |
tree | de5d308c9f0397987551481825b0d5acd0bba6df /src | |
parent | 2d9b7bfd3395148419da27cd3c98de470a2d245b (diff) | |
download | pianobar-windows-b32348d88f700f4a3b5fb3a95f7ee40336952230.tar.gz pianobar-windows-b32348d88f700f4a3b5fb3a95f7ee40336952230.tar.bz2 pianobar-windows-b32348d88f700f4a3b5fb3a95f7ee40336952230.zip |
piano: More error messages
Diffstat (limited to 'src')
-rw-r--r-- | src/libpiano/piano.c | 8 | ||||
-rw-r--r-- | src/libpiano/piano.h | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/libpiano/piano.c b/src/libpiano/piano.c index 70f7d41..74ab3ed 100644 --- a/src/libpiano/piano.c +++ b/src/libpiano/piano.c @@ -292,6 +292,14 @@ const char *PianoErrorToStr (PianoReturn_t ret) { "Set up a control proxy (see manpage)."; break; + case PIANO_RET_P_PARTNER_NOT_AUTHORIZED: + return "Invalid partner credentials."; + break; + + case PIANO_RET_P_LISTENER_NOT_AUTHORIZED: + return "Listener not authorized."; + break; + default: return "No error message available."; break; diff --git a/src/libpiano/piano.h b/src/libpiano/piano.h index ea21aa1..d8bebcc 100644 --- a/src/libpiano/piano.h +++ b/src/libpiano/piano.h @@ -286,7 +286,7 @@ typedef enum { PIANO_RET_P_URL_PARAM_MISSING_USER_ID = PIANO_RET_OFFSET+5, PIANO_RET_P_USERNAME_ALREADY_EXISTS = PIANO_RET_OFFSET+1013, PIANO_RET_P_USER_ALREADY_USED_TRIAL = PIANO_RET_OFFSET+1037, - PIANO_RET_P_USER_NOT_ACTIVE = PIANO_RET_OFFSET+1003, + 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, |