-
Couldn't load subscription status.
- Fork 198
Closed
Labels
Description
The error handling in dstack Go codebase is messy. There are at least three different ways errors are created and propagated:
- gerrors
- tracerr
- 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.