Skip to content

Commit

Permalink
CR-1216478 xrt-smi still prints 'operation canceled' (#8734)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Chane <[email protected]>
  • Loading branch information
rchane authored Feb 1, 2025
1 parent 12c637d commit c7fbc58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime_src/core/tools/common/XBUtilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ XBUtilities::print_exception(const std::system_error& e)
// Remove the type of error from the message.
const std::string msg = std::regex_replace(e.what(), std::regex(std::string(": ") + e.code().message()), "");

if (!msg.empty())
if ((!msg.empty()) && (!boost::icontains(msg, "operation canceled")))
std::cerr << boost::format("ERROR: %s\n") % msg;
}
catch (const std::exception&)
Expand Down

0 comments on commit c7fbc58

Please sign in to comment.