Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

piano: Add error message for code 1039

See #352.
  • Loading branch information...
commit 1154b01448a4545d6b90aff4e3152c44e5641d2b 1 parent 847ca41
@PromyLOPh authored
Showing with 5 additions and 1 deletion.
  1. +4 −0 src/libpiano/piano.c
  2. +1 −1  src/libpiano/piano.h
View
4 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;
View
2  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 *,
Please sign in to comment.
Something went wrong with that request. Please try again.