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.
This commit is contained in:
Karol Kosek 2023-02-04 13:29:28 +01:00 committed by Andrew Kaster
parent 1ef410eb79
commit 675713ad8e
Notes: sideshowbarker 2024-07-17 08:45:34 +09:00

View file

@ -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;
}