SWDEV-414594: Improved error message with metrics create.

Change-Id: I3946252efb000f105816a300e638b8338b26defd


[ROCm/rocprofiler commit: 62641013b0]
Этот коммит содержится в:
Giovanni LB
2023-08-21 23:34:52 -03:00
родитель 0d07112d6d
Коммит 732709d70a
+2 -1
Просмотреть файл
@@ -190,7 +190,8 @@ class Context {
if (obj == NULL) EXC_RAISING(HSA_STATUS_ERROR, "allocation error");
try {
obj->Construct(agent_info, queue, info, info_count, handler, handler_arg);
} catch (...) {
} catch (std::exception& e) {
std::cerr << e.what() << std::endl;
delete obj;
obj = NULL;
std::cerr << "Error: Context Create failed" << std::endl;