mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
UserspaceEmulator: Improve error message for typos
This commit is contained in:
parent
792fa9f9fd
commit
9058a8367f
Notes:
sideshowbarker
2024-07-18 22:55:16 +09:00
Author: https://github.com/BenWiederhake
Commit: 9058a8367f
Pull-request: https://github.com/SerenityOS/serenity/pull/5066
1 changed files with 4 additions and 0 deletions
|
@ -49,6 +49,10 @@ int main(int argc, char** argv, char** env)
|
||||||
parser.parse(argc, argv);
|
parser.parse(argc, argv);
|
||||||
|
|
||||||
auto executable_path = Core::find_executable_in_path(command[0]);
|
auto executable_path = Core::find_executable_in_path(command[0]);
|
||||||
|
if (executable_path.is_empty()) {
|
||||||
|
reportln("Cannot find executable for '{}'.", command[0]);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
Vector<String> arguments;
|
Vector<String> arguments;
|
||||||
for (auto arg : command) {
|
for (auto arg : command) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue