Skip to content

Commit b4cf1f3

Browse files
fix: OOPS
1 parent c8916e1 commit b4cf1f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/agentapi/subagent.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func (a *SubAgentAPI) CreateSubAgent(ctx context.Context, req *agentproto.Create
126126
default:
127127
return codersdk.ValidationError{
128128
Field: "share",
129-
Detail: fmt.Sprint("%q is not a valid app sharing level"),
129+
Detail: fmt.Sprintf("%q is not a valid app sharing level", app.GetShare()),
130130
}
131131
}
132132

@@ -139,7 +139,7 @@ func (a *SubAgentAPI) CreateSubAgent(ctx context.Context, req *agentproto.Create
139139
default:
140140
return codersdk.ValidationError{
141141
Field: "open_in",
142-
Detail: fmt.Sprint("%q is not an open in setting"),
142+
Detail: fmt.Sprintf("%q is not an open in setting", app.GetOpenIn()),
143143
}
144144
}
145145

0 commit comments

Comments
 (0)