opt: optimize file detect message

This commit is contained in:
DreamMaoMao 2026-02-04 21:50:44 +08:00
parent b97b0f1af5
commit 8266d9747f

View file

@ -2600,7 +2600,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;
}