Skip to content

Commit 675713a

Browse files
krkkADKaster
authored andcommitted
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.
1 parent 1ef410e commit 675713a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Userland/Libraries/LibSQL/SQLClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ static ErrorOr<void> launch_server(DeprecatedString const& socket_path, Deprecat
8585
"--pid-file"sv,
8686
pid_path,
8787
};
88-
auto result = Core::System::exec(arguments[0], arguments, Core::System::SearchInPath::Yes);
88+
result = Core::System::exec(arguments[0], arguments, Core::System::SearchInPath::Yes);
8989
if (!result.is_error())
9090
break;
9191
}

0 commit comments

Comments
 (0)