@@ -212,13 +212,13 @@ func Agent(ctx context.Context, writer io.Writer, agentID uuid.UUID, opts AgentO
212
212
sw .Fail (stage , safeDuration (sw , agent .ReadyAt , agent .StartedAt ))
213
213
// Use zero time (omitted) to separate these from the startup logs.
214
214
sw .Log (time.Time {}, codersdk .LogLevelWarn , "Warning: A startup script exited with an error and your workspace may be incomplete." )
215
- sw .Log (time.Time {}, codersdk .LogLevelWarn , troubleshootingMessage (agent , "https://coder.com/docs/v2/latest/templates#startup-script-exited-with-an-error" ))
215
+ sw .Log (time.Time {}, codersdk .LogLevelWarn , troubleshootingMessage (agent , "https://coder.com/docs/v2/latest/templates/troubleshooting #startup-script-exited-with-an-error" ))
216
216
default :
217
217
switch {
218
218
case agent .LifecycleState .Starting ():
219
219
// Use zero time (omitted) to separate these from the startup logs.
220
220
sw .Log (time.Time {}, codersdk .LogLevelWarn , "Notice: The startup scripts are still running and your workspace may be incomplete." )
221
- sw .Log (time.Time {}, codersdk .LogLevelWarn , troubleshootingMessage (agent , "https://coder.com/docs/v2/latest/templates#your-workspace-may-be-incomplete" ))
221
+ sw .Log (time.Time {}, codersdk .LogLevelWarn , troubleshootingMessage (agent , "https://coder.com/docs/v2/latest/templates/troubleshooting #your-workspace-may-be-incomplete" ))
222
222
// Note: We don't complete or fail the stage here, it's
223
223
// intentionally left open to indicate this stage didn't
224
224
// complete.
@@ -240,7 +240,7 @@ func Agent(ctx context.Context, writer io.Writer, agentID uuid.UUID, opts AgentO
240
240
stage := "The workspace agent lost connection"
241
241
sw .Start (stage )
242
242
sw .Log (time .Now (), codersdk .LogLevelWarn , "Wait for it to reconnect or restart your workspace." )
243
- sw .Log (time .Now (), codersdk .LogLevelWarn , troubleshootingMessage (agent , "https://coder.com/docs/v2/latest/templates#agent-connection-issues" ))
243
+ sw .Log (time .Now (), codersdk .LogLevelWarn , troubleshootingMessage (agent , "https://coder.com/docs/v2/latest/templates/troubleshooting #agent-connection-issues" ))
244
244
245
245
disconnectedAt := agent .DisconnectedAt
246
246
for agent .Status == codersdk .WorkspaceAgentDisconnected {
0 commit comments