mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 22:20:53 +10:00
Fix report error output
This commit is contained in:
@@ -246,14 +246,14 @@ class PatchSysVolume:
|
|||||||
if self.constants.gui_mode is False:
|
if self.constants.gui_mode is False:
|
||||||
input("Press [ENTER] to continue with cache rebuild")
|
input("Press [ENTER] to continue with cache rebuild")
|
||||||
print("- Rebuilding Kernel Cache (This may take some time)")
|
print("- Rebuilding Kernel Cache (This may take some time)")
|
||||||
result = subprocess.run(f"sudo kmutil install --volume-root {self.mount_location} --update-all".split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
result = subprocess.run(f"sudo kmutil install --volume-root {self.mount_location} --update-all".split(), stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||||
|
|
||||||
if result.returncode != 0:
|
if result.returncode != 0:
|
||||||
self.sucess_status = False
|
self.sucess_status = False
|
||||||
print("- Unable to build new kernel cache")
|
print("- Unable to build new kernel cache")
|
||||||
print("\nPlease report this to Github")
|
print("\nPlease report this to Github")
|
||||||
print("Reason for Patch Failure:")
|
print("Reason for Patch Failure:")
|
||||||
print(result)
|
print(result.stdout.decode())
|
||||||
print("")
|
print("")
|
||||||
else:
|
else:
|
||||||
self.sucess_status = True
|
self.sucess_status = True
|
||||||
|
|||||||
Reference in New Issue
Block a user