publicerror

package
v0.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 1 Imported by: 0

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

func Message(err error) string

Message returns err's readable chain without the source locations ctxerrors appends. A nil error gives an empty string.

func Text added in v0.31.0

func Text(message string) string

Text is Message for error text that was already rendered, such as a failure detail a record kept. 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL