Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (cmd *LogsCmd) Run(ctx context.Context, args []string) error {
Owner: cmd.Owner,
})
if err != nil {
return err
return fmt.Errorf("get workspace for logs: %w", err)
}

client, ok := baseClient.(clientpkg.WorkspaceClient)
Expand Down
10 changes: 5 additions & 5 deletions cmd/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (cmd *UpCmd) execute(cobraCmd *cobra.Command, args []string) error {
}
devsyConfig, err := config.LoadConfig(cmd.Context, cmd.Provider)
if err != nil {
return err
return fmt.Errorf("load devsy config: %w", err)
}
if devsyConfig.ContextOption(config.ContextOptionSSHStrictHostKeyChecking) == config.BoolTrue {
cmd.StrictHostKeyChecking = true
Expand Down Expand Up @@ -331,7 +331,7 @@ func (cmd *UpCmd) executeDevsyUp(
) (*workspaceContext, error) {
result, err := cmd.devsyUp(ctx, devsyConfig, client)
if err != nil {
return nil, err
return nil, fmt.Errorf("start workspace: %w", err)
}
if result == nil {
return nil, fmt.Errorf("did not receive a result back from agent")
Expand Down Expand Up @@ -439,7 +439,7 @@ func (cmd *UpCmd) devsyUp(
if !cmd.Platform.Enabled {
err := client.Lock(ctx)
if err != nil {
return nil, err
return nil, fmt.Errorf("lock workspace: %w", err)
}
defer client.Unlock()
}
Expand Down Expand Up @@ -584,13 +584,13 @@ func (cmd *UpCmd) devsyUpMachine(
) (*config2.Result, error) {
err := clientimplementation.StartWait(ctx, client, true)
if err != nil {
return nil, err
return nil, fmt.Errorf("wait for machine: %w", err)
}

// compress info
workspaceInfo, wInfo, err := client.AgentInfo(cmd.CLIOptions)
if err != nil {
return nil, err
return nil, fmt.Errorf("get agent info: %w", err)
}

// create container etc.
Expand Down
Loading