From dfbc298d393ff526f92d4ab1866e88b70fe184ee Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 13 Sep 2024 23:53:07 -0500 Subject: [PATCH] [keel] Add pack file copy status to logging --- src/olympic/keel/src/pack.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/olympic/keel/src/pack.cpp b/src/olympic/keel/src/pack.cpp index 09bda0e8..44c37f3d 100644 --- a/src/olympic/keel/src/pack.cpp +++ b/src/olympic/keel/src/pack.cpp @@ -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 {};