From 67e26c43d37da8c02a1faecc7911bbf1488239db Mon Sep 17 00:00:00 2001 From: Matthew Fidler Date: Mon, 9 Sep 2024 21:13:51 -0500 Subject: [PATCH] Add more information to error for rx2api --- src/rx2api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rx2api.c b/src/rx2api.c index ae55d342c..95bcb3274 100644 --- a/src/rx2api.c +++ b/src/rx2api.c @@ -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]); }