You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- **when to use: need to embark a message string to output when the error is presented to a human.**
212
+
- **when to use: need to embark a message string to output when the error is presented to a developer.**
213
213
- what it does: captures detail strings.
214
214
- how to access the detail: `errors.GetAllDetails()`, `errors.FlattenDetails()` (all details are preserved), format with `%+v`. Not included in Sentry reports.
215
215
216
216
- `WithHint(error, string) error`, `WithHintf(error, string, ...interface{}) error`: user-facing detail with suggestion for action to take.
217
-
- **when to use: need to embark a message string to output when the error is presented to a human.**
217
+
- **when to use: need to embark a message string to output when the error is presented to an end user.**
218
218
- what it does: captures hint strings.
219
219
- how to access the detail: `errors.GetAllHints()`, `errors.FlattenHints()` (hints are de-duplicated), format with `%+v`. Not included in Sentry reports.
0 commit comments