// check if we are not removing current working directory
cwd = get_current_dir_name();
try {
- wrapCall(::chdir(lpath.c_str()), "could not change directory to '%s'", path.c_str());
+ wrapCall(::chdir(lpath.c_str()));
rmd = get_current_dir_name();
if (strcmp(cwd, rmd) == 0) {
vfsThrow(EINVAL, "can not remove current working directory");
}
::chdir(cwd);
// OK, we can try to remove
- wrapCall(rmdir(lpath.c_str()), "could not remove directory '%s'", path.c_str());
+ wrapCall(rmdir(lpath.c_str()));
} catch (...) {
if (cwd) ::chdir(cwd);
free(cwd);