commit 807869c14ee57aaa6035e6cba0df5d1369ced9ba from: Omar Polo date: Thu Oct 07 17:19:45 2021 UTC print the error too if we can't open a directory It's not intuitive to print open ... for domain xyz it doesn't convey that the open failed. now it appends the error string, at least the user can understand that something went wrong. reported by cage on irc, thanks! commit - 492a274fd712e4589669254be327897868e44812 commit + 807869c14ee57aaa6035e6cba0df5d1369ced9ba blob - c8d1b57df6cabd0e171e8e51531ee6b87868df98 blob + f0ffa3ef389cff98e442c2da2c9c20de1ad98dab --- gmid.c +++ gmid.c @@ -133,7 +133,8 @@ load_vhosts(void) if (l->dir == NULL) continue; if ((l->dirfd = open(l->dir, O_RDONLY | O_DIRECTORY)) == -1) - fatal("open %s for domain %s", l->dir, h->domain); + fatal("open %s for domain %s: %s", l->dir, h->domain, + strerror(errno)); } } }