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:
parent
792fa9f9fd
commit
9058a8367f
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);
|
||||
|
||||
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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue