mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20: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;
|
return defaultstring;
|
||||||
|
|
||||||
if (bcnr < 0 || bcnr >= bcnames.Size())
|
if (bcnr < 0 || bcnr >= bcnames.Size())
|
||||||
throw NgException ("illegal bc-number");
|
throw RangeException("Illegal bc number ", bcnr, 0, bcnames.Size());
|
||||||
|
|
||||||
if ( bcnames[bcnr] )
|
if ( bcnames[bcnr] )
|
||||||
return *bcnames[bcnr];
|
return *bcnames[bcnr];
|
||||||
|
Loading…
Reference in New Issue
Block a user