Skip to content

Commit

Permalink
Update s2pexec error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Oct 23, 2024
1 parent 1b1f6aa commit 7010f43
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cpp/s2pexec/s2pexec_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,11 @@ int S2pExec::Run(span<char*> args, bool in_process)
return -1;
}

if (command.empy()) {
cerr << "Error: Missing command" << endl;
return -1;
}

if (!Init(in_process)) {
cerr << "Error: Can't initialize bus" << endl;
return -1;
Expand Down

0 comments on commit 7010f43

Please sign in to comment.