Skip to content

Commit

Permalink
error value
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonYao287 committed May 16, 2024
1 parent dd045da commit 8787390
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/meta/meta_blk_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ void MetaBlkService::write_ssb() {
// the offset and buffer length is printed in the error messages of iomgr.
// buf address here is to show whether the buffer is aligned or not.
// TODO: hanle this error properly
HS_REL_ASSERT(false, "error happens happen during write ssb: {}, buf address: {}", error.what(),
HS_REL_ASSERT(false, "error happens happen during write ssb: {}, buf address: {}", error.value(),
(const char*)m_ssb);
}

Expand Down Expand Up @@ -446,7 +446,7 @@ void MetaBlkService::write_ovf_blk_to_disk(meta_blk_ovf_hdr* ovf_hdr, const uint
// the offset and buffer length is printed in the error messages of iomgr.
// buf address here is to show whether the buffer is aligned or not.
// TODO: hanle this error properly
HS_REL_ASSERT(false, "error happens happen during write: {}, buf address: {}", error.what(),
HS_REL_ASSERT(false, "error happens happen during write: {}, buf address: {}", error.value(),
(const char*)ovf_hdr);
}

Expand Down Expand Up @@ -503,7 +503,7 @@ void MetaBlkService::write_ovf_blk_to_disk(meta_blk_ovf_hdr* ovf_hdr, const uint
// the offset and buffer length is printed in the error messages of iomgr.
// buf address here is to show whether the buffer is aligned or not.
// TODO: hanle this error properly
HS_REL_ASSERT(false, "error happens happen during write: {}, buf address: {}", error.what(),
HS_REL_ASSERT(false, "error happens happen during write: {}, buf address: {}", error.value(),
r_cast< const char* >(cur_ptr));
}
}
Expand All @@ -521,7 +521,7 @@ void MetaBlkService::write_meta_blk_to_disk(meta_blk* mblk) {
// the offset and buffer length is printed in the error messages of iomgr.
// buf address here is to show whether the buffer is aligned or not.
// TODO: hanle this error properly
HS_REL_ASSERT(false, "error happens happen during write_meta_blk_to_disk: {}, buf address: {}", error.what(),
HS_REL_ASSERT(false, "error happens happen during write_meta_blk_to_disk: {}, buf address: {}", error.value(),
(const char*)mblk);
}
}
Expand Down

0 comments on commit 8787390

Please sign in to comment.