Skip to content

Commit 351eec6

Browse files
committed
23
1 parent 6f227cd commit 351eec6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/realm/object-store/c_api/error.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,18 @@ bool ErrorStorage::get_as_realm_error_t(realm_error_t* out) const noexcept
160160
{
161161
printf("bool ErrorStorage::get_as_realm_error_t(realm_error_t* out) const noexcept\n");
162162
if (!m_err) {
163+
printf("no m_err. returning false\n");
163164
return false;
164165
}
165166

166167
if (out) {
168+
printf("m_err found. returning true\n");
167169
*out = *m_err;
170+
if ((*m_err).usercode_error != nullptr) {
171+
printf("m_err.usercode_error != nullptr\n");
172+
}
168173
}
174+
printf("m_err found. returning true\n");
169175
return true;
170176
}
171177

0 commit comments

Comments
 (0)