Merge pull request #647 from RomanDonw/main

generation.load_fragment fix
This commit is contained in:
MihailRis 2025-10-10 14:18:28 +03:00 committed by GitHub
commit c7e58220a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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");