[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 + '/'));
|
||||
} else {
|
||||
// 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));
|
||||
// write file to dest
|
||||
oxReturnError(dest.write(currentFile, buff));
|
||||
status = "OK";
|
||||
}
|
||||
}
|
||||
return {};
|
||||
|
Loading…
Reference in New Issue
Block a user