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}