generation.load_fragment fix
This commit is contained in:
parent
51a8ed6737
commit
b4ba2da955
@ -44,7 +44,7 @@ static int l_create_fragment(lua::State* L) {
|
||||
|
||||
static int l_load_fragment(lua::State* L) {
|
||||
dv::value map;
|
||||
if (!lua::isstring(L, 1)) {
|
||||
if (lua::isstring(L, 1)) {
|
||||
io::path path = lua::require_string(L, 1);
|
||||
if (!io::exists(path)) {
|
||||
throw std::runtime_error("file "+path.string()+" does not exist");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user