try removing message

This commit is contained in:
Micah Kornfield authored and Antoine Pitrou committed 2019-07-02 17:58:29 +02:00
1 parent a4e6a1ff2e
commit 3626a9016e
1 file changed
+2 -2
+2 -2
View File
@@ -82,7 +82,7 @@ Status PyBuffer::Init(PyObject* obj) {
return Status::OK();
} else {
auto detail = std::make_shared<PythonErrorDetail>();
return Status(StatusCode::Invalid, "Couldn't convert to buffer.", detail);
return Status(StatusCode::Invalid, "", detail);
}
}
@@ -150,7 +150,7 @@ Status PassPyError() {
// Do not call PyErr_Clear, the assumption is that someone further
// up the call stack will want to deal with the Python error.
auto detail = std::make_shared<PythonErrorDetail>();
return Status(StatusCode::UnknownError, "Python Error", detail);
return Status(StatusCode::UnknownError, "", detail);
}
return Status::OK();
}