Browse Source

LibSQL: Actually print an error message after failing to launch a server

We were shadowing the 'result' variable, which made an exec error
message along with the search paths never being printed.
Karol Kosek 2 năm trước cách đây
mục cha
commit
675713ad8e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Userland/Libraries/LibSQL/SQLClient.cpp

+ 1 - 1
Userland/Libraries/LibSQL/SQLClient.cpp

@@ -85,7 +85,7 @@ static ErrorOr<void> launch_server(DeprecatedString const& socket_path, Deprecat
                 "--pid-file"sv,
                 pid_path,
             };
-            auto result = Core::System::exec(arguments[0], arguments, Core::System::SearchInPath::Yes);
+            result = Core::System::exec(arguments[0], arguments, Core::System::SearchInPath::Yes);
             if (!result.is_error())
                 break;
         }