Skip to content

Commit

Permalink
better container output for timeout code
Browse files Browse the repository at this point in the history
  • Loading branch information
srujangit123 committed Dec 26, 2024
1 parent 2f59d7b commit fefb59e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/container/dockerclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ func (d *dockerClient) ExecuteCode(ctx context.Context, code *Code) (string, err
return "", fmt.Errorf("failed to kill the container: %w", err)
}
d.logger.Info("killed the container")
return "Time limit exceeded", nil
case err := <-errCh:
if err != nil {
return "", fmt.Errorf("failed to get the container logs: %w", err)
Expand Down

0 comments on commit fefb59e

Please sign in to comment.