From 742d9e87ad40c6d338ea2bf050ea5fb527a59b58 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 8 Jul 2010 19:10:00 +0200 Subject: Improve error message if a device mode can not be determined Most of the time it means that there is no device attached as we should be able to detect any mode of a device. --- src/idevicerestore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/idevicerestore.c b/src/idevicerestore.c index 6b17ad3..2a7a96b 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -126,7 +126,7 @@ int main(int argc, char* argv[]) { // check which mode the device is currently in so we know where to start if (check_mode(client) < 0 || client->mode->index == MODE_UNKNOWN) { - error("ERROR: Unable to discover current device state\n"); + error("ERROR: Unable to discover device mode. Please make sure a device is attached.\n"); return -1; } info("Found device in %s mode\n", client->mode->string); -- cgit v1.1-32-gdbae