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 Dec 9, 2024
1 parent 04d1e99 commit f9d8fe9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cpp/s2pexec/s2pexec_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,10 @@ tuple<sense_key, asc, int> S2pExec::ExecuteCommand()

const int status = executor->ExecuteCommand(cdb, buffer, timeout);
if (status) {
if (status != 0xff && request_sense) {
return executor->GetSenseData();
if (status != 0xff) {
if (request_sense) {
return executor->GetSenseData();
}
}
else {
const string_view &command_name = CommandMetaData::Instance().GetCommandName(
Expand Down

0 comments on commit f9d8fe9

Please sign in to comment.