Skip to content

Commit 4a87794

Browse files
authored
Merge pull request #151 from CookieLau/fix_err_msg
Fix incorrect error message in assert functions
2 parents 3668b6c + 71730c5 commit 4a87794

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/include/common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ void assert_valid_3d_tri_mesh(const TV& v, const TF& f, std::string v_name="v",
218218
".shape = [" + std::to_string(v.rows()) + ", " + std::to_string(v.cols()) + "]");
219219
}
220220
if (f.cols() != 3) {
221-
throw pybind11::value_error("Invalid mesh faces, " + f_name + " must have shape [#faces, 4] but got " + f_name +
221+
throw pybind11::value_error("Invalid mesh faces, " + f_name + " must have shape [#faces, 3] but got " + f_name +
222222
".shape = [" + std::to_string(f.rows()) + ", " + std::to_string(f.cols()) + "]");
223223
}
224224
}
@@ -265,7 +265,7 @@ void assert_valid_23d_tri_mesh(const TV &v, const TF &f, std::string v_name = "v
265265
}
266266
if (f.cols() != 3)
267267
{
268-
throw pybind11::value_error("Invalid mesh faces, " + f_name + " must have shape [#faces, 4] but got " + f_name +
268+
throw pybind11::value_error("Invalid mesh faces, " + f_name + " must have shape [#faces, 3] but got " + f_name +
269269
".shape = [" + std::to_string(f.rows()) + ", " + std::to_string(f.cols()) + "]");
270270
}
271271
}

0 commit comments

Comments
 (0)