From 84a00830b1c082368ad1de09ea1fbfdceff6024e Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Fri, 30 Sep 2016 00:51:53 -0600 Subject: [PATCH] Slightly nicer error message --- include/CPnumerics.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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