summaryrefslogtreecommitdiff
path: root/libpiano/src/main.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2009-08-18 09:53:30 +0200
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2009-08-18 09:53:30 +0200
commit354ac4e9edd7db050e2b71a34a01c5b8b3100607 (patch)
treebf099ac141357e663bf6dd92f2aba205c92ad54f /libpiano/src/main.c
parentf43699482a0a5921cb4cdc4bf110242278209ada (diff)
downloadpianobar-354ac4e9edd7db050e2b71a34a01c5b8b3100607.tar.gz
pianobar-354ac4e9edd7db050e2b71a34a01c5b8b3100607.tar.bz2
pianobar-354ac4e9edd7db050e2b71a34a01c5b8b3100607.zip
piano: New error code OUT_OF_SYNC
Error code indicates that the system's time is "out of sync". Maybe the "sync" response timestamp should be checked *before* errors like this happen... Thanks to Jason for pointing this out.
Diffstat (limited to 'libpiano/src/main.c')
-rw-r--r--libpiano/src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpiano/src/main.c b/libpiano/src/main.c
index d108c09..f5e9b85 100644
--- a/libpiano/src/main.c
+++ b/libpiano/src/main.c
@@ -868,6 +868,10 @@ const char *PianoErrorToStr (PianoReturn_t ret) {
return "Out of memory.";
break;
+ case PIANO_RET_OUT_OF_SYNC:
+ return "Out of sync. Please correct your system's time.";
+ break;
+
default:
return "No error message available.";
break;