From 07cd3d4b8bd5fdbba2157bfea927833786183aa7 Mon Sep 17 00:00:00 2001 From: RyderXia Date: Fri, 12 Jun 2020 17:42:21 +0800 Subject: [PATCH] return error --- cmd/utils.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/utils.go b/cmd/utils.go index ff22b226..b48a00f3 100644 --- a/cmd/utils.go +++ b/cmd/utils.go @@ -430,6 +430,8 @@ func readAndUpdate(stdOut io.Writer, inputFile string, updateData updateDataFn) if err != nil { return err } + } else if err != nil { + return err } tempFile, err := ioutil.TempFile("", "temp") if err != nil {