mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 04:50:34 +05:00
add more information to illegal bc number exception
This commit is contained in:
parent
6a834f13ac
commit
ac45a5f736
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user