1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 04:37:35 +00:00

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
parent 792fa9f9fd
commit 9058a8367f

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) {