Skip to content

Commit 2631409

Browse files
committed
fix messaing for build timeout
1 parent 2f41b9b commit 2631409

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/lk/agent.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,9 @@ func createAgent(ctx context.Context, cmd *cli.Command) error {
587587
excludeFiles := []string{fmt.Sprintf("**/%s", config.LiveKitTOMLFile)}
588588
resp, err := agentsClient.CreateAgent(buildContext, os.DirFS(workingDir), secrets, regions, excludeFiles, os.Stderr)
589589
if err != nil {
590+
if errors.Is(err, context.DeadlineExceeded) {
591+
return fmt.Errorf("build timed out possibly due to large image size")
592+
}
590593
if twerr, ok := err.(twirp.Error); ok {
591594
return fmt.Errorf("unable to create agent: %s", twerr.Msg())
592595
}

0 commit comments

Comments
 (0)