Skip to content

Make Go error handling consistent #3229

@r4victor

Description

@r4victor

The error handling in dstack Go codebase is messy. There are at least three different ways errors are created and propagated:

  1. gerrors
  2. tracerr
  3. Standard library (fmt.Errorf(..., %w, ...))

We should standardize on one approach and make it consistent. Using plain errors.New / fmt.Errorf should be the Go way but we lose file/line number info that comes with gerrors by default. tracerr prints full stacktrace unlike gerrors but it's a third party dep.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions