Skip to content
Extraits de code Groupes Projets
Vérifiée Valider e7958bdc rédigé par Kubat's avatar Kubat
Parcourir les fichiers

INIT: Better error reporting to find where it's failing on Ellio's computer

parent 7f3b0309
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!198Migrate from Qt5 to Qt6
Pipeline #3321 en échec
......@@ -347,8 +347,13 @@ retry_config:
config_default_file(conf_file, conf_len);
___mkdir(conf_file); /* Create the folder for the file. */
errno = 0;
FILE *file_desc = fopen(conf_file, "w+");
RETURN_UNLESS(file_desc, "Failed to open default config file to initialize it", 1);
if (file_desc != NULL) {
LOG_ERROR("INIT", "Failed to open default config file and initialize it");
LOG_ERROR("INTI", "Conf file is %s, errno is %d: %s", conf_file, errno, strerror(errno));
return 1;
}
config_default(file_desc);
fclose(file_desc);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter