Skip to content

Commit

Permalink
Add more information to error for rx2api
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Sep 10, 2024
1 parent af8a9d1 commit 67e26c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rx2api.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ rx_solving_options* getSolvingOptions(rx_solve* rx) {
rx_solving_options_ind *getSolvingOptionsInd(rx_solve *rx, int id) {
int nall = rx->nsub*rx->nsim;
if (id < 0 || id >= nall) {
Rf_error("[getSolvingOptionsInd]: id (%d) should be between [0, %d)", id, nall);
Rf_error("[getSolvingOptionsInd]: id (%d) should be between [0, %d); nsub: %d nsim: %d", id, nall, rx->nsub, rx->nsim);
}
return &(rx->subjects[id]);
}
Expand Down

0 comments on commit 67e26c4

Please sign in to comment.