ARROW-3470: Fix status macro

When ARROW_EXTRA_ERROR_CONTEXT is enabled and the ARROW_RETURN_NOT_OK
macro is used in a non-arrow namespace, the compiler would throw an
error.
This commit is contained in:
François Saint-Jacques committed 2018-12-12 12:52:35 -05:00
1 parent 1eba067d02
commit fab63f6f73
1 file changed
+2 -2
+2 -2
View File
@@ -36,7 +36,7 @@
if (ARROW_PREDICT_FALSE(!_s.ok())) { \
std::stringstream ss; \
ss << __FILE__ << ":" << __LINE__ << " code: " << #s << "\n" << _s.message(); \
return Status(_s.code(), ss.str()); \
return ::arrow::Status(_s.code(), ss.str()); \
} \
} while (0)
@@ -69,7 +69,7 @@
std::stringstream ss; \
ss << __FILE__ << ":" << __LINE__ << " code: " << _status.CodeAsString() << " \n " \
<< _status.message(); \
return Status(_status.code(), ss.str()); \
return ::arrow::Status(_status.code(), ss.str()); \
} \
} while (0)