diff --git a/include/CPnumerics.h b/include/CPnumerics.h index ca7b60a6..405fe4f1 100644 --- a/include/CPnumerics.h +++ b/include/CPnumerics.h @@ -126,7 +126,7 @@ template void bisect_vector(const std::vector &vec, T val, std:: L = MR; rL = vec[MR] - val; } else{ - throw CoolProp::ValueError(format("Unable to bisect segmented vector; neither chunk contains the solution %g %g %g %g", rL, rML, rMR, rR)); + throw CoolProp::ValueError(format("Unable to bisect segmented vector; neither chunk contains the solution val:%g left:(%g,%g) right:(%g,%g)", val, vec[L], vec[ML], vec[MR], vec[R])); } M = (L+R)/2; } @@ -196,7 +196,7 @@ template void bisect_segmented_vector_slice(const std::vector