Skip to content

Commit

Permalink
Add error message mapping for TS_LCTRLP_DIM_MISMATCH.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Steinbeck committed Aug 6, 2018
1 parent 6f29cf5 commit fffb011
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tinyspline.c
Original file line number Diff line number Diff line change
Expand Up @@ -1658,7 +1658,7 @@ const char* ts_enum_str(tsError err)
else if (err == TS_DIM_ZERO)
return "dim == 0";
else if (err == TS_DEG_GE_NCTRLP)
return "deg >= #ctrlp";
return "deg >= num(control_points)";
else if (err == TS_U_UNDEFINED)
return "spline is undefined at given u";
else if (err == TS_MULTIPLICITY)
Expand All @@ -1669,6 +1669,8 @@ const char* ts_enum_str(tsError err)
return "unexpected number of knots";
else if (err == TS_UNDERIVABLE)
return "spline is not derivable";
else if (err == TS_LCTRLP_DIM_MISMATCH)
return "len(control_points) % dim != 0";
else if (err == TS_IO_ERROR)
return "io error";
else if (err == TS_PARSE_ERROR)
Expand Down

0 comments on commit fffb011

Please sign in to comment.