fix: Improve error handling and fix wrong compress dir for windows (#367) (#368)

* fix: Improve error handling and fix wrong compress dir for windows
* refactor: Refactor fileutil package for pass linter
This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2024-07-17 22:32:29 +08:00
committed by GitHub
parent c9beee2662
commit 271e052481
3 changed files with 112 additions and 34 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ func Execute() {
if compress {
if err = fileutil.CompressDir(outputDir); err != nil {
slog.Error("compress error: ", "err", err)
slog.Error("compress error", "err", err)
}
slog.Info("compress success")
}