compiler: fixup Sprintf uses

This commit is contained in:
Damian Gryski
2024-08-14 12:09:01 -07:00
committed by Ron Evans
parent 9932f2e126
commit 4d60d679d3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -958,7 +958,7 @@ func buildAndRun(pkgName string, config *compileopts.Config, stdout io.Writer, c
err = run(cmd, result)
if err != nil {
if ctx != nil && ctx.Err() == context.DeadlineExceeded {
stdout.Write([]byte(fmt.Sprintf("--- timeout of %s exceeded, terminating...\n", timeout)))
fmt.Fprintf(stdout, "--- timeout of %s exceeded, terminating...\n", timeout)
err = ctx.Err()
}
return result, &commandError{"failed to run compiled binary", result.Binary, err}