1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 12:05:00 +00:00

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

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