some debug stuff

This commit is contained in:
IonutParau 2025-07-15 19:22:15 +02:00
parent bb45b99e8a
commit 38ebb77eda

View File

@ -229,6 +229,9 @@ void *ne_fs_open(nn_address address, const char *path, const char *mode) {
const char *p = ne_fs_diskPath(address, path); const char *p = ne_fs_diskPath(address, path);
if(p[0] == '/') p++; if(p[0] == '/') p++;
FILE *f = fopen(p, trueMode); FILE *f = fopen(p, trueMode);
if(f == NULL) {
printf("open(%s) failure: %s\n", path, strerror(errno));
}
return f; return f;
} }