change: print hrp exit code

This commit is contained in:
debugtalk
2022-10-21 15:41:30 +08:00
parent 2656676386
commit 4a8fcd4fd9
5 changed files with 13 additions and 8 deletions

View File

@@ -306,8 +306,8 @@ func (dev *IOSDevice) forward(localPort, remotePort int) error {
rInnerConn, err := device.NewConnect(remotePort)
if err != nil {
log.Error().Err(err).Msg("connect to device failed")
os.Exit(1)
log.Error().Err(err).Msg("connect to ios device failed")
os.Exit(code.GetErrorCode(code.IOSDeviceConnectionError))
}
rConn := rInnerConn.RawConn()