From b2157b8722f754b0dfe156e94331157a497f434b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20L=C3=BCbke?= Date: Thu, 4 Aug 2022 14:54:38 +0200 Subject: [PATCH] Fix output of exceptions --- include/diffusion/BTCSBoundaryCondition.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/diffusion/BTCSBoundaryCondition.hpp b/include/diffusion/BTCSBoundaryCondition.hpp index 450632e..cc6ced1 100644 --- a/include/diffusion/BTCSBoundaryCondition.hpp +++ b/include/diffusion/BTCSBoundaryCondition.hpp @@ -187,11 +187,11 @@ public: boundary_condition &operator()(uint8_t side) { if (dim != 1) { - throw std::invalid_argument("Explicit setting of bc value with 2 " - "parameters is only supported for 2D grids"); + throw std::invalid_argument( + "Only 1D grid support 1 parameter in operator"); } if (side > 1) { - throw std::out_of_range("2D index out of range"); + throw std::out_of_range("1D index out of range"); } return bc_internal[side]; }