aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Danny van Dyk <dvandyk@exherbo.org> 2007-03-09 00:05:45 +0000
committerAvatar Danny van Dyk <dvandyk@exherbo.org> 2007-03-09 00:05:45 +0000
commit4240c68350ce8a4cefc70e1803d2cb59b9c039bc (patch)
treee2be6dc904443f244d3bece88b9249dcebfd03f6
parentbc41693a10284b3c0ae8f01d0569249e6643b608 (diff)
downloadpaludis-4240c68350ce8a4cefc70e1803d2cb59b9c039bc.tar.gz
paludis-4240c68350ce8a4cefc70e1803d2cb59b9c039bc.tar.xz
Make exceptions on rename mention the error.
-rw-r--r--paludis/util/fs_entry.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/paludis/util/fs_entry.cc b/paludis/util/fs_entry.cc
index 204ce6e..0782d02 100644
--- a/paludis/util/fs_entry.cc
+++ b/paludis/util/fs_entry.cc
@@ -494,6 +494,7 @@ void
FSEntry::rename(const FSEntry & new_name)
{
if (0 != ::rename(_path.c_str(), new_name._path.c_str()))
- throw FSError("rename('" + stringify(_path) + "', '" + stringify(new_name._path) + "') failed");
+ throw FSError("rename('" + stringify(_path) + "', '" + stringify(new_name._path) + "') failed: " +
+ ::strerror(errno));
}