3 ms·
pkg/errors.Wrap is already accomplished in the stdlib via fmt.Errorf("annotation: %w", err). Programs which use `panic` as ersatz error mechanisms are fundamen
by preseinger 5y ago
pkg/errors.Wrap is already accomplished in the stdlib via fmt.Errorf("annotation: %w", err).
Programs which use `panic` as ersatz error mechanisms are fundamentally broken. `panic` expresses an invariant violation that's much different than normal errors.