mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-07 09:16:53 +08:00
Better error reporting on missing type info
This commit is contained in:
parent
ef47b4582e
commit
a48f358555
@ -731,7 +731,7 @@ namespace chaiscript
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (t_throw) {
|
if (t_throw) {
|
||||||
throw std::range_error("Type Not Known");
|
throw std::range_error("Type Not Known: " + name);
|
||||||
} else {
|
} else {
|
||||||
return Type_Info();
|
return Type_Info();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user