From b659577288539ddb704fe64ebeacb7238695ce4e Mon Sep 17 00:00:00 2001 From: Nick Chan Date: Sun, 7 Apr 2024 17:28:10 +0800 Subject: [PATCH] Actually log the errors properly --- palera1nLoader/XPC/Wrapper.swift | 2 +- palera1nLoader/XPC/bridge.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/palera1nLoader/XPC/Wrapper.swift b/palera1nLoader/XPC/Wrapper.swift index a20447aa..9e926c40 100644 --- a/palera1nLoader/XPC/Wrapper.swift +++ b/palera1nLoader/XPC/Wrapper.swift @@ -67,7 +67,7 @@ func DeployBootstrap(path: String, deb: String, password: String) -> (Int, Strin result = ""; } if (retval != 0) { - let errorString = "Bootstrapper XPC Error occured: " + (retval < 0 ? result : result + ": " + String(errno) + String(cString: strerror(errno))); + let errorString = "Bootstrapper XPC Error occured: " + (retval < 0 ? result : result + ": " + String(retval) + String(cString: xpc_strerror(retval))); log(type: .fatal, msg: errorString) } do { diff --git a/palera1nLoader/XPC/bridge.h b/palera1nLoader/XPC/bridge.h index b50f273f..26eb244e 100644 --- a/palera1nLoader/XPC/bridge.h +++ b/palera1nLoader/XPC/bridge.h @@ -10,5 +10,6 @@ #include #include "jailbreakd.h" +const char* xpc_strerror(int err); #endif /* bridge_h */