From 8ebee55718190c5bec5fb24128f2e3b986174397 Mon Sep 17 00:00:00 2001
From: Nikias Bassen
Date: Thu, 9 Jul 2020 06:34:30 +0200
Subject: Fix 'Unable get path ...' error messages to say 'Unable to get path
 ...'

---
 src/idevicerestore.c |  2 +-
 src/restore.c        | 12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)

(limited to 'src')

diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 0148974..7653125 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -901,7 +901,7 @@ int idevicerestore_start(struct idevicerestore_client_t* client)
 	// Get filesystem name from build identity
 	char* fsname = NULL;
 	if (build_identity_get_component_path(build_identity, "OS", &fsname) < 0) {
-		error("ERROR: Unable get path for filesystem component\n");
+		error("ERROR: Unable to get path for filesystem component\n");
 		return -1;
 	}
 
diff --git a/src/restore.c b/src/restore.c
index 78bce3d..cd09c52 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -1968,7 +1968,7 @@ static plist_t restore_get_se_firmware_data(restored_client_t restore, struct id
 	}
 
 	if (build_identity_get_component_path(build_identity, comp_name, &comp_path) < 0) {
-		error("ERROR: Unable get path for '%s' component\n", comp_name);
+		error("ERROR: Unable to get path for '%s' component\n", comp_name);
 		return NULL;
 	}
 
@@ -2081,7 +2081,7 @@ static plist_t restore_get_savage_firmware_data(restored_client_t restore, struc
 
 	/* now get actual component data */
 	if (build_identity_get_component_path(build_identity, comp_name, &comp_path) < 0) {
-		error("ERROR: Unable get path for '%s' component\n", comp_name);
+		error("ERROR: Unable to get path for '%s' component\n", comp_name);
 		free(comp_name);
 		return NULL;
 	}
@@ -2174,7 +2174,7 @@ static plist_t restore_get_yonkers_firmware_data(restored_client_t restore, stru
 	}
 
 	if (build_identity_get_component_path(build_identity, comp_name, &comp_path) < 0) {
-		error("ERROR: Unable get path for '%s' component\n", comp_name);
+		error("ERROR: Unable to get path for '%s' component\n", comp_name);
 		free(comp_name);
 		return NULL;
 	}
@@ -2264,7 +2264,7 @@ static plist_t restore_get_rose_firmware_data(restored_client_t restore, struct
 
 	comp_name = "Rap,RTKitOS";
 	if (build_identity_get_component_path(build_identity, comp_name, &comp_path) < 0) {
-		error("ERROR: Unable get path for '%s' component\n", comp_name);
+		error("ERROR: Unable to get path for '%s' component\n", comp_name);
 		return NULL;
 	}
 	ret = extract_component(client->ipsw, comp_path, &component_data, &component_size);
@@ -2290,7 +2290,7 @@ static plist_t restore_get_rose_firmware_data(restored_client_t restore, struct
 	if (build_identity_has_component(build_identity, comp_name)) {
 		if (build_identity_get_component_path(build_identity, comp_name, &comp_path) < 0) {
 			ftab_free(ftab);
-			error("ERROR: Unable get path for '%s' component\n", comp_name);
+			error("ERROR: Unable to get path for '%s' component\n", comp_name);
 			return NULL;
 		}
 		ret = extract_component(client->ipsw, comp_path, &component_data, &component_size);
@@ -2389,7 +2389,7 @@ static plist_t restore_get_veridian_firmware_data(restored_client_t restore, str
 	}
 
 	if (build_identity_get_component_path(build_identity, comp_name, &comp_path) < 0) {
-		error("ERROR: Unable get path for '%s' component\n", comp_name);
+		error("ERROR: Unable to get path for '%s' component\n", comp_name);
 		return NULL;
 	}
 
-- 
cgit v1.1-32-gdbae