Skip to content

Commit

Permalink
Replace exception with error string return in zello_log.h
Browse files Browse the repository at this point in the history
Fixes VLCLJ-2305

Signed-off-by: Lisanna Dettwyler <[email protected]>
  • Loading branch information
lisanna-dettwyler committed Sep 27, 2024
1 parent a798166 commit 3dfafe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/include/zello_log.h
Original file line number Diff line number Diff line change
Expand Up @@ -645,8 +645,8 @@ std::string to_string(const ze_result_t result) {
} else if (result == ZE_RESULT_ERROR_UNKNOWN) {
return "ZE_RESULT_ERROR_UNKNOWN";
} else {
throw std::runtime_error("Unknown ze_result_t value: " +
std::to_string(static_cast<int>(result)));
return "Unknown ze_result_t value: " +
std::to_string(static_cast<int>(result));
}
}

Expand Down

0 comments on commit 3dfafe0

Please sign in to comment.