News for hackers. Stuff that matters.
Re:Errors are values by skybrian on Tuesday January 13, 2015 @04:06AM (#8878765)
What I mean is something like a stack trace except without all the extra detail:

  - Can't persist shopping cart
  - RPC request failed: http://example.com/update_cart
  - Can't write to database "carts"
  - Can't save file: "/a/b/c"
  - OS error: disk full
Ideally, all errors in the cause chain should be logged, and they typically cross abstraction boundaries; the message at each level comes from a different part of the stack. This seems hard to do across languages, but within a language there should be a standard way to do it.

(Go falls down on this too. Perhaps we don't need Java-style stack traces that go on for multiple screens, but we should have more than a string.)

There are no comments on this comment yet.