[keel] Add pack file copy status to logging
This commit is contained in:
parent
76760dafb6
commit
dfbc298d39
@ -150,10 +150,15 @@ static ox::Error copy(
|
|||||||
oxReturnError(copy(src, dest, currentFile + '/'));
|
oxReturnError(copy(src, dest, currentFile + '/'));
|
||||||
} else {
|
} else {
|
||||||
// load file
|
// load file
|
||||||
oxOutf("copying file: {}\n", currentFile);
|
oxOutf("copying file: {}...", currentFile);
|
||||||
|
ox::StringView status = "failed";
|
||||||
|
oxDefer [&status] {
|
||||||
|
oxOutf(" {}\n", status);
|
||||||
|
};
|
||||||
oxRequireM(buff, src.read(currentFile));
|
oxRequireM(buff, src.read(currentFile));
|
||||||
// write file to dest
|
// write file to dest
|
||||||
oxReturnError(dest.write(currentFile, buff));
|
oxReturnError(dest.write(currentFile, buff));
|
||||||
|
status = "OK";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return {};
|
return {};
|
||||||
|
Loading…
Reference in New Issue
Block a user