diff options
author | Bill Richardson <wfrichar@google.com> | 2018-08-08 16:06:20 -0700 |
---|---|---|
committer | Bill Richardson <wfrichar@google.com> | 2018-08-08 16:52:09 -0700 |
commit | 363ec624e0ffc88e6f98fb19d22d9c4bcfce1a15 (patch) | |
tree | bba8ad7441ed58da0ac1239f41262cf73bcf7d58 | |
parent | 2c969cfd5c5d88d617b85d9e14495d253b00fb7a (diff) | |
download | generic-363ec624e0ffc88e6f98fb19d22d9c4bcfce1a15.tar.gz |
Let citadel_updater know more error codes
Bug: none
Test: manual
Change-Id: Iccfbcec547ebed683d299a409a6def0d7a3e7743
Signed-off-by: Bill Richardson <wfrichar@google.com>
-rw-r--r-- | citadel/updater/updater.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/citadel/updater/updater.cpp b/citadel/updater/updater.cpp index 3d7fd8c..618a9d1 100644 --- a/citadel/updater/updater.cpp +++ b/citadel/updater/updater.cpp @@ -228,6 +228,21 @@ int is_app_success(uint32_t retval) case APP_ERROR_TOO_MUCH: fprintf(stderr, "caller sent too much data"); break; + case APP_ERROR_IO: + fprintf(stderr, "problem sending or receiving data"); + break; + case APP_ERROR_RPC: + fprintf(stderr, "problem during RPC communication"); + break; + case APP_ERROR_CHECKSUM: + fprintf(stderr, "checksum failed"); + break; + case APP_ERROR_BUSY: + fprintf(stderr, "the app is already working on a commnad"); + break; + case APP_ERROR_TIMEOUT: + fprintf(stderr, "the app took too long to respond"); + break; default: if (retval >= APP_SPECIFIC_ERROR && retval < APP_LINE_NUMBER_BASE) { @@ -237,7 +252,7 @@ int is_app_success(uint32_t retval) fprintf(stderr, "error at line %d", retval - APP_LINE_NUMBER_BASE); } else { - fprintf(stderr, "unknown)"); + fprintf(stderr, "unknown"); } } fprintf(stderr, "\n"); |