Skip to content

Commit 64f9a0e

Browse files
authored
Improve error messages for developer mode enabling (#680)
Enhance error handling for enabling developer mode by providing specific error messages based on the response from the amfi service.
1 parent 96f5363 commit 64f9a0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
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 {

0 commit comments

Comments
 (0)