Format errors in logs as strings

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2024-11-23 22:44:36 -07:00
parent 470fb323eb
commit 5834b82f93
4 changed files with 4 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ func runContainedCmd(cmd *cobra.Command, containerName string, args []string) (e
}
defer func() {
if err := os.RemoveAll(runDir); err != nil {
wwlog.Error("error removing run directory: %w", err)
wwlog.Error("error removing run directory: %s", err)
}
}()