|
@@ -938,7 +938,7 @@ void path_rm(Cstr path)
|
|
|
|
|
|
|
|
if (rmdir(path) < 0) {
|
|
if (rmdir(path) < 0) {
|
|
|
if (errno == ENOENT) {
|
|
if (errno == ENOENT) {
|
|
|
- WARN("directory %s does not exist");
|
|
|
|
|
|
|
+ WARN("directory %s does not exist", path);
|
|
|
} else {
|
|
} else {
|
|
|
PANIC("could not remove directory %s: %s", path, strerror(errno));
|
|
PANIC("could not remove directory %s: %s", path, strerror(errno));
|
|
|
}
|
|
}
|
|
@@ -946,7 +946,7 @@ void path_rm(Cstr path)
|
|
|
} else {
|
|
} else {
|
|
|
if (unlink(path) < 0) {
|
|
if (unlink(path) < 0) {
|
|
|
if (errno == ENOENT) {
|
|
if (errno == ENOENT) {
|
|
|
- WARN("file %s does not exist");
|
|
|
|
|
|
|
+ WARN("file %s does not exist", path);
|
|
|
} else {
|
|
} else {
|
|
|
PANIC("could not remove file %s: %s", path, strerror(errno));
|
|
PANIC("could not remove file %s: %s", path, strerror(errno));
|
|
|
}
|
|
}
|