Skip to content

Commit db5c4af

Browse files
committed
Fix log output not printing the actual result
1 parent 20ad9ae commit db5c4af

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Sources/LogView.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,11 @@ struct LogView: View {
8484
let result = idevicebackup2_main(Int32(restoreArgs.count), &argv)
8585
print("idevicebackup2 exited with code \(result)")
8686

87+
log.append("\n")
8788
if log.contains("Domain name cannot contain a slash") {
88-
print("ERROR: this iOS version is not supported.")
89+
log.append("Result: this iOS version is not supported.")
8990
} else if log.contains("crash_on_purpose") {
90-
print("Restore succeeded")
91+
log.append("Result: restore successful.")
9192
if willReboot && result == 0 {
9293
isRebooting.toggle()
9394
MobileDevice.rebootDevice(udid: udid)

0 commit comments

Comments
 (0)