diff --git a/src/cond-w.c b/src/cond-w.c index 65b59312..765cc27e 100644 --- a/src/cond-w.c +++ b/src/cond-w.c @@ -55,7 +55,8 @@ int cond_set_path(const char *path, enum cond_state new) break; case COND_OFF: - unlink(path); + if (unlink(path)) + _pe("Failed removing condition '%s'", path); break; default: