Skip to content

Commit 24c0d69

Browse files
Update src/tesseract.pybind.h
Co-authored-by: Noureldin <noureldinyosri@gmail.com>
1 parent c34dd80 commit 24c0d69

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tesseract.pybind.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,10 @@ void add_tesseract_module(py::module& root) {
253253
msg << "Syndrome array size (" << syndrome.size()
254254
<< ") does not match the number of detectors in the decoder ("
255255
<< self.num_detectors << ").";
256-
throw std::invalid_argument(msg.str());
256+
std::string msg = "Syndrome array size (" + std:to_string(syndrome.size())
257+
+ ") does not match the number of detectors in the decoder ("
258+
+ std::to_string(self.num_detectors) + ")."
259+
throw std::invalid_argument(msg);
257260
}
258261

259262
std::vector<uint64_t> detections;

0 commit comments

Comments
 (0)