From 675713ad8e738fcb9d957c438771a1a61bc0547d Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Sat, 4 Feb 2023 13:29:28 +0100 Subject: [PATCH] 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. --- Userland/Libraries/LibSQL/SQLClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibSQL/SQLClient.cpp b/Userland/Libraries/LibSQL/SQLClient.cpp index 923a115611..00618df647 100644 --- a/Userland/Libraries/LibSQL/SQLClient.cpp +++ b/Userland/Libraries/LibSQL/SQLClient.cpp @@ -85,7 +85,7 @@ static ErrorOr 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; }