From cec903aeebc655b78b3bb868c9777659221e2425 Mon Sep 17 00:00:00 2001 From: xu yang Date: Thu, 25 Jul 2024 06:42:16 +0000 Subject: [PATCH] resovle the comments Signed-off-by: xu yang --- internal/app/wwctl/overlay/edit/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/app/wwctl/overlay/edit/main.go b/internal/app/wwctl/overlay/edit/main.go index ae5a8cdc..6979b0b4 100644 --- a/internal/app/wwctl/overlay/edit/main.go +++ b/internal/app/wwctl/overlay/edit/main.go @@ -124,7 +124,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error { cerr := util.CopyFile(tempFile.Name(), overlayFile) if cerr != nil { wwlog.Error("Unable to copy data from temp file: %s to target file: %s, err: %s", tempFile.Name(), overlayFile, err) - os.Exit(1) + return cerr } }