Skip to content

Commit

Permalink
Merge pull request #841 from igchor/disjoint_pool_extend_error
Browse files Browse the repository at this point in the history
[umf] extend error message for disjoint pool
  • Loading branch information
pbalcer authored Sep 5, 2023
2 parents 022bbae + 0625273 commit eb061c8
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 eb061c8

Please sign in to comment.