diff --git a/cmd/ipsw/cmd/dyld/dyld_disass.go b/cmd/ipsw/cmd/dyld/dyld_disass.go index d1623b658..23ed96a1f 100644 --- a/cmd/ipsw/cmd/dyld/dyld_disass.go +++ b/cmd/ipsw/cmd/dyld/dyld_disass.go @@ -208,7 +208,7 @@ var DisassCmd = &cobra.Command{ //*********************** if err := image.Analyze(); err != nil { if !viper.GetBool("dyld.disass.force") { - return fmt.Errorf("failed to analyze image %s: %v", filepath.Base(image.Name), err) + return fmt.Errorf("failed to analyze image %s: %v (use --force to continue anyway)", filepath.Base(image.Name), err) } } if err := engine.Triage(); err != nil { @@ -217,7 +217,7 @@ var DisassCmd = &cobra.Command{ for _, img := range engine.Dylibs() { if err := img.Analyze(); err != nil { if !viper.GetBool("dyld.disass.force") { - return fmt.Errorf("failed to analyze image %s: %v", filepath.Base(img.Name), err) + return fmt.Errorf("failed to analyze image %s: %v (use --force to continue anyway)", filepath.Base(img.Name), err) } } } @@ -302,7 +302,7 @@ var DisassCmd = &cobra.Command{ } if err := image.Analyze(); err != nil { if !viper.GetBool("dyld.disass.force") { - return fmt.Errorf("failed to analyze image %s: %v", filepath.Base(image.Name), err) + return fmt.Errorf("failed to analyze image %s: %v (use --force to continue anyway)", filepath.Base(image.Name), err) } } if err := engine.Triage(); err != nil { @@ -311,7 +311,7 @@ var DisassCmd = &cobra.Command{ for _, img := range engine.Dylibs() { if err := img.Analyze(); err != nil { if !viper.GetBool("dyld.disass.force") { - return fmt.Errorf("failed to analyze image %s: %v", filepath.Base(img.Name), err) + return fmt.Errorf("failed to analyze image %s: %v (use --force to continue anyway)", filepath.Base(img.Name), err) } } } @@ -416,12 +416,12 @@ var DisassCmd = &cobra.Command{ //* First pass ANALYSIS * //*********************** if err := engine.Triage(); err != nil { - return fmt.Errorf("first pass triage failed: %v", err) + return fmt.Errorf("first pass triage failed: %v (use --force to continue anyway)", err) } for _, img := range engine.Dylibs() { if err := img.Analyze(); err != nil { if !viper.GetBool("dyld.disass.force") { - return fmt.Errorf("failed to analyze image %s: %v", filepath.Base(img.Name), err) + return fmt.Errorf("failed to analyze image %s: %v (use --force to continue anyway)", filepath.Base(img.Name), err) } } } diff --git a/cmd/ipsw/cmd/macho/macho_disass.go b/cmd/ipsw/cmd/macho/macho_disass.go index d57be5c69..405f5fb85 100644 --- a/cmd/ipsw/cmd/macho/macho_disass.go +++ b/cmd/ipsw/cmd/macho/macho_disass.go @@ -295,7 +295,7 @@ var machoDisassCmd = &cobra.Command{ if len(symbolMap) == 0 { if err := engine.Analyze(); err != nil { if !viper.GetBool("macho.disass.force") { - return fmt.Errorf("MachO analysis failed: %v", err) + return fmt.Errorf("MachO analysis failed: %v (use --force to continue anyway)", err) } } } @@ -394,7 +394,7 @@ var machoDisassCmd = &cobra.Command{ } if err := engine.Analyze(); err != nil { if !viper.GetBool("macho.disass.force") { - return fmt.Errorf("MachO analysis failed: %v", err) + return fmt.Errorf("MachO analysis failed: %v (use --force to continue anyway)", err) } } if err := engine.SaveAddrToSymMap(cacheFile); err != nil {