diff options
author | 2010-07-21 22:47:08 +0200 | |
---|---|---|
committer | 2010-07-21 22:47:08 +0200 | |
commit | 419cc2bd828e6396cec719aff7c0a8752c0ab657 (patch) | |
tree | 8a84b97f809831bb2a605577f5ec29d71990bdf4 /src | |
parent | 6ab686bd4bfa1459d67fa108697f0bac1f4d67ad (diff) | |
download | libirecovery-419cc2bd828e6396cec719aff7c0a8752c0ab657.tar.gz libirecovery-419cc2bd828e6396cec719aff7c0a8752c0ab657.tar.bz2 |
Add error strings for pipe and timeout errors
Diffstat (limited to 'src')
-rw-r--r-- | src/libirecovery.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index b110410..4b8434f 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c @@ -627,6 +627,12 @@ const char* irecv_strerror(irecv_error_t error) { case IRECV_E_USB_CONFIGURATION: return "Unable to set device configuration"; + case IRECV_E_PIPE: + return "Broken pipe"; + + case IRECV_E_TIMEOUT: + return "Timeout talking to device"; + default: return "Unknown error"; } |