← Back to context

Comment by ozgrakkurt

6 days ago

Why need error payloads when:

You can do validation at user interface and report actual nice errors.

And if something happens after that, you can save the stack trace into somewhere so the developer can see it. And you report unexpected error to user as that is exactly that

What zig really needs is a stack trace that works properly on release mode. And a way to collect the stack trace into a string at runtime so it can be saved as a log or into a db