Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23e84874 authored by howardchung's avatar howardchung Committed by Yun-hao Chung
Browse files

Floss: Fix wrong message in socket connect cmd

In success case shouldn't return error. Print some information instead.

Bug: 241859545
Test: build

Change-Id: I9f18bf00b998180591ae70fbeaaabd6ace3f2834
parent 852e184c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1454,8 +1454,8 @@ impl CommandHandler {
                    return Err(CommandError::Failed(format!("Failed to create socket with status={:?} against {}, type {}, with psm/uuid {}",
                        status, addr, sock_type, psm_or_uuid)));
                } else {
                    return Err(CommandError::Failed(format!("Called create socket with result ({:?}, {}) against {}, type {}, with psm/uuid {}",
                    status, id, addr, sock_type, psm_or_uuid)));
                    print_info!("Called create socket with result ({:?}, {}) against {}, type {}, with psm/uuid {}",
                    status, id, addr, sock_type, psm_or_uuid);
                }
            }