opt: optimize file detect message

This commit is contained in:
DreamMaoMao 2026-02-04 21:50:44 +08:00
parent 2bda8e3bf1
commit 65fcd58949

View file

@ -2683,7 +2683,10 @@ void parse_config_file(Config *config, const char *file_path) {
}
if (!file) {
perror("Error opening file");
fprintf(stderr,
"\033[1;31m\033[1;33m[ERROR]:\033[0m Failed to open "
"config file: %s\n",
file_path);
return;
}