UserspaceEmulator: Improve error message for typos

This commit is contained in:
Ben Wiederhake 2021-01-23 15:12:24 +01:00 committed by Andreas Kling
commit 9058a8367f
Notes: sideshowbarker 2024-07-18 22:55:16 +09:00

View file

@ -49,6 +49,10 @@ int main(int argc, char** argv, char** env)
parser.parse(argc, argv);
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;
for (auto arg : command) {