Skip to content

Commit a8d1d67

Browse files
committed
printing error for context deadline issues
1 parent be3ec75 commit a8d1d67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func Run(ctx context.Context, target string, command string, expectedOutput stri
151151

152152
select {
153153
case <-ctx.Done():
154-
return false, "Timeout exceeded; err %v" + ctx.Err().Error()
154+
return false, fmt.Sprintf("Timeout exceeded; err %v", ctx.Err())
155155
case err := <-errChan:
156156
if err != nil {
157157
return false, fmt.Sprintf("Encountered error: %s", err)

0 commit comments

Comments
 (0)