From 0d6b7b7682f326692869f923e7201c5d17c230bb Mon Sep 17 00:00:00 2001 From: Andrew Walsh Date: Sun, 10 Dec 2023 14:52:58 -0800 Subject: [PATCH] More Lint errors --- src/internal/cmdtesting/cmdtesting.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/internal/cmdtesting/cmdtesting.go b/src/internal/cmdtesting/cmdtesting.go index 72d5a35..30519fd 100644 --- a/src/internal/cmdtesting/cmdtesting.go +++ b/src/internal/cmdtesting/cmdtesting.go @@ -53,7 +53,10 @@ func (t *CmdTesting) Run(command string, pkgNames ...string) RunResult { combinedout, err := cmd.CombinedOutput() if t.createReplayLogs { - common.AppendFile(binaryName+".log", t.replayFilename) + err := common.AppendFile(binaryName+".log", t.replayFilename) + if err != nil { + t.T.Fatalf("Error encountered appending log file.\n%s", err.Error()) + } } return RunResult{Testing: t, Combinedout: string(combinedout), Err: err}