Skip to content

Commit 6f4b694

Browse files
chore: warn on app creation error
1 parent 56ff0fb commit 6f4b694

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

agent/agentcontainers/subagent.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,15 @@ func (a *subAgentAPIClient) Create(ctx context.Context, agent SubAgent) (SubAgen
233233
if err != nil {
234234
return SubAgent{}, err
235235
}
236+
for _, appError := range resp.AppCreationErrors {
237+
app := apps[appError.Index]
238+
239+
a.logger.Warn(ctx, "unable to create app",
240+
slog.F("app_slug", app.Slug),
241+
slog.F("field", appError.GetField()),
242+
slog.F("error", appError.GetError()),
243+
)
244+
}
236245

237246
agent.Name = resp.Agent.Name
238247
agent.ID, err = uuid.FromBytes(resp.Agent.Id)

0 commit comments

Comments
 (0)