commit 4391381392ee58879dc504b524057a083e4b0138
parent 535da0c893d8af729413fbb956b6da91eeb73d79
Author: cfillion <cfillion@users.noreply.github.com>
Date: Fri, 6 May 2016 03:31:45 -0400
task: better error message when install renaming step fails
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/task.cpp b/src/task.cpp
@@ -110,7 +110,8 @@ bool InstallTask::doCommit()
#endif
if(!FS::rename(paths.temp, paths.target)) {
- transaction()->addError(FS::lastError(), paths.target.join());
+ transaction()->addError("Cannot rename to target: " + FS::lastError(),
+ paths.target.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