[keel] Add pack file copy status to logging

This commit is contained in:
Gary Talent 2024-09-13 23:53:07 -05:00
parent 76760dafb6
commit dfbc298d39

View File

@ -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 {};