From 1b53c51cdce4e3ed6e63dc80fb0d7f3cd1cb890c Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sun, 14 Apr 2024 14:41:38 +0800 Subject: [PATCH] Update io.cpp --- src/io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io.cpp b/src/io.cpp index e38e3729..75693270 100644 --- a/src/io.cpp +++ b/src/io.cpp @@ -177,7 +177,7 @@ void add_module_os(VM* vm){ try{ di = std::filesystem::directory_iterator(path); }catch(std::filesystem::filesystem_error& e){ - vm->IOError(Str(e.what()).lstrip()); + vm->IOError(path.string()); } List ret; for(auto& p: di) ret.push_back(VAR(p.path().filename().string()));