Documentation
¶
Overview ¶
Package publicerror turns an error into text that is safe to show a client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Message ¶
Message returns err's readable chain without the source locations ctxerrors appends. ctxerrors formats as "message: wrapped [file:line in func]", and nested wraps append their own marker, so every marker sits after the readable chain and the first one is where the text stops being safe to publish. A nil error gives an empty string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.