Skip to content

Commit

Permalink
[umf] extend error message for disjoint pool
Browse files Browse the repository at this point in the history
  • Loading branch information
igchor committed Aug 22, 2023
1 parent cc12f71 commit 0625273
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions source/common/umf_pools/disjoint_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,15 @@ Slab::~Slab() {
} catch (MemoryProviderError &e) {
std::cout << "DisjointPool: error from memory provider: " << e.code
<< "\n";
if (e.code == UMF_RESULT_ERROR_MEMORY_PROVIDER_SPECIFIC) {
const char *message = "";
int error = 0;

umfMemoryProviderGetLastNativeError(
umfGetLastFailedMemoryProvider(), &message, &error);
std::cout << "Native error msg: " << message
<< ", native error code: " << error << std::endl;
}
}
}

Expand Down

0 comments on commit 0625273

Please sign in to comment.