Skip to content

Commit 81c89fd

Browse files
authored
Merge branch 'main' into sm-decouple-ax-response
2 parents a407b80 + 64f9a0e commit 81c89fd

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

ios/amfi/amfi.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ func (devModeConn *Connection) EnableDevMode() error {
6161
}
6262

6363
// Check if we have an error returned by the service
64-
if _, ok := plist["Error"]; ok {
65-
return fmt.Errorf("EnableDevMode: could not enable developer mode through amfi service")
64+
if errorMsg, ok := plist["Error"]; ok {
65+
return fmt.Errorf("EnableDevMode: could not enable developer mode through amfi service with error: %s", errorMsg)
6666
}
6767

6868
if _, ok := plist["success"]; ok {

main.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,9 +1123,9 @@ The commands work as following:
11231123
err = pControl.KillProcess(p.Pid)
11241124
exitIfError("kill process failed ", err)
11251125
if bundleID != "" {
1126-
log.Info(bundleID, " killed, Pid: ", p.Pid)
1126+
log.WithFields(log.Fields{"pid": p.Pid}).Info(bundleID, " killed, Pid: ", p.Pid)
11271127
} else {
1128-
log.Info(p.Name, " killed, Pid: ", p.Pid)
1128+
log.WithFields(log.Fields{"pid": p.Pid}).Info(p.Name, " killed, Pid: ", p.Pid)
11291129
}
11301130
return
11311131
}
@@ -1437,12 +1437,11 @@ The commands work as following:
14371437
err = conn.PushFile(remotePath, file, fileSize, permissions, uid, gid)
14381438
exitIfError("push: failed to upload file", err)
14391439

1440-
if b, _ := arguments.Bool("--json"); b {
1440+
if !JSONdisabled {
14411441
result := map[string]interface{}{
1442-
"success": true,
1443-
"remote": remotePath,
1444-
"local": localPath,
1445-
"size": fileSize,
1442+
"remote": remotePath,
1443+
"local": localPath,
1444+
"size": fileSize,
14461445
}
14471446
fmt.Println(convertToJSONString(result))
14481447
} else {

0 commit comments

Comments
 (0)