File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package ios
2
2
3
3
import (
4
4
"bytes"
5
+ "fmt"
5
6
6
7
plist "howett.net/plist"
7
8
)
@@ -29,6 +30,7 @@ type StartSessionResponse struct {
29
30
EnableSessionSSL bool
30
31
Request string
31
32
SessionID string
33
+ Error string
32
34
}
33
35
34
36
func startSessionResponsefromBytes (plistBytes []byte ) StartSessionResponse {
@@ -52,6 +54,9 @@ func (lockDownConn *LockDownConnection) StartSession(pairRecord PairRecord) (Sta
52
54
return StartSessionResponse {}, err
53
55
}
54
56
response := startSessionResponsefromBytes (resp )
57
+ if response .Error != "" {
58
+ return StartSessionResponse {}, fmt .Errorf ("failed to start new lockdown session: %s" , response .Error )
59
+ }
55
60
lockDownConn .sessionID = response .SessionID
56
61
if response .EnableSessionSSL {
57
62
err = lockDownConn .deviceConnection .EnableSessionSsl (pairRecord )
You can’t perform that action at this time.
0 commit comments