From ac45a5f736105d1dd0760d5a6c06d4e85ae52f45 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Tue, 16 Jun 2020 13:54:13 +0200 Subject: [PATCH] add more information to illegal bc number exception --- libsrc/meshing/meshclass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/meshing/meshclass.cpp b/libsrc/meshing/meshclass.cpp index b38aeb88..76a22ffc 100644 --- a/libsrc/meshing/meshclass.cpp +++ b/libsrc/meshing/meshclass.cpp @@ -6541,7 +6541,7 @@ namespace netgen return defaultstring; if (bcnr < 0 || bcnr >= bcnames.Size()) - throw NgException ("illegal bc-number"); + throw RangeException("Illegal bc number ", bcnr, 0, bcnames.Size()); if ( bcnames[bcnr] ) return *bcnames[bcnr];