1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-26 05:07:41 +00:00

Assert that prime-bunlde-paths is working.

This commit is contained in:
Calvin Rose
2024-05-26 10:54:00 -05:00
parent 6998865d7b
commit 1225cd31c8
2 changed files with 8 additions and 4 deletions

View File

@@ -2417,8 +2417,9 @@ JANET_CORE_FN(os_dir,
dp = readdir(dfd);
if (dp == NULL) {
if (errno) {
int olderr = errno;
closedir(dfd);
janet_panicf("failed to read directory %s: %s", dir, janet_strerror(errno));
janet_panicf("failed to read directory %s: %s", dir, janet_strerror(olderr));
}
break;
}