Skip to content

Commit

Permalink
Actually log the errors properly
Browse files Browse the repository at this point in the history
  • Loading branch information
asdfugil committed Apr 7, 2024
1 parent 3f3bec3 commit b659577
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion palera1nLoader/XPC/Wrapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions palera1nLoader/XPC/bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
#include <IOKit/IOKitLib.h>
#include "jailbreakd.h"

const char* xpc_strerror(int err);

#endif /* bridge_h */

0 comments on commit b659577

Please sign in to comment.