commit f0cf97ecc807182b1badb91739ed9c0a6275a230
parent 67cd63c89abacf948388a2b5f919bbbcba33a9a5
Author: cfillion <cfillion@users.noreply.github.com>
Date: Sat, 13 Feb 2016 23:36:43 -0800
improve reporting of installation failures
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/task.cpp b/src/task.cpp
@@ -160,7 +160,7 @@ bool InstallTask::doCommit()
RemoveFile(paths.second);
if(!RenameFile(paths.first, paths.second)) {
- transaction()->addError(strerror(errno), paths.first.join());
+ transaction()->addError(strerror(errno), paths.second.join());
// it's a bit late to rollback here as some files might already have been
// overwritten. at least we can delete the temporary files