add more information to illegal bc number exception

This commit is contained in:
Christopher Lackner 2020-06-16 13:54:13 +02:00
parent 6a834f13ac
commit ac45a5f736

View File

@ -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];