.
This commit is contained in:
parent
95d74c2ef4
commit
a66e58193f
25 changed files with 2600 additions and 93 deletions
2
os.c
2
os.c
|
|
@ -149,7 +149,7 @@ buffer_t os_file_read_all_fp(arena_t *arena, oshandle_t handle) {
|
|||
str_t os_file_read_all_str(arena_t *arena, strview_t path) {
|
||||
oshandle_t fp = os_file_open(path, FILEMODE_READ);
|
||||
if (!os_handle_valid(fp)) {
|
||||
err("could not open file %v", path);
|
||||
err("could not open file %v: %v", path, os_get_error_string(os_get_last_error()));
|
||||
return STR_EMPTY;
|
||||
}
|
||||
str_t out = os_file_read_all_str_fp(arena, fp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue