From da9118346b072fc5cb5a3dca95007da76d11378e Mon Sep 17 00:00:00 2001 From: javalsai Date: Sun, 8 Jun 2025 13:50:28 +0200 Subject: [PATCH] feat: add config open error guide message --- src/config.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config.c b/src/config.c index b16efb6..d4857b3 100644 --- a/src/config.c +++ b/src/config.c @@ -145,6 +145,9 @@ struct config* parse_config(char* path) { FILE* fd = fopen(path, "r"); if (fd == NULL || (stat(path, &sb) == -1)) { perror("fopen"); + fprintf(stderr, + "Please place a config file at /etc/lidm.ini or set the LIDM_CONF " + "env variable"); return NULL; }