The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

u/file: Do not print errors

authored by

Jakob Bornecrantz and committed by
Jakob Bornecrantz
1744715a 83cace51

+2 -10
+2 -10
src/xrt/auxiliary/util/u_file.c
··· 59 59 return snprintf(out_path, out_path_size, "%s/.config/monado", 60 60 home); 61 61 } else { 62 - fprintf(stderr, 63 - "Could not create config file no $HOME or " 64 - "$XDG_CONFIG_HOME env variables defined\n"); 65 62 return -1; 66 63 } 67 64 } ··· 103 100 // Try creating the path. 104 101 mkpath(tmp); 105 102 106 - file = fopen(file_str, mode); 107 - if (file == NULL) { 108 - fprintf(stderr, "Could not open or create file '%s'\n", 109 - file_str); 110 - } 111 - 112 - return file; 103 + // Do not report error. 104 + return fopen(file_str, mode); 113 105 }