[keel] Add pack file copy status to logging
Some checks failed
Build / build (push) Has been cancelled
Some checks failed
Build / build (push) Has been cancelled
This commit is contained in:
parent
123601c970
commit
2dc921d38e
7
deps/nostalgia/src/olympic/keel/src/pack.cpp
vendored
7
deps/nostalgia/src/olympic/keel/src/pack.cpp
vendored
@ -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…
x
Reference in New Issue
Block a user