From 419cc2bd828e6396cec719aff7c0a8752c0ab657 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Wed, 21 Jul 2010 22:47:08 +0200 Subject: Add error strings for pipe and timeout errors --- src/libirecovery.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/libirecovery.c') 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"; } -- cgit v1.1-32-gdbae