Internal
internal/core/diagnostics
import "github.com/nilstate/scafld/v2/internal/core/diagnostics"
Package diagnostics turns a provider failure into a compact one-line reason for status and ledgers, and names the artifact that keeps the full transcript.
Functions
func CompactOneLine(text string, max int) string
Source: internal/core/diagnostics/diagnostics.go:45
CompactOneLine collapses incidental output formatting for status fields.
func FailureReason(prefix string, err error, maxDetail int) (string, string)
Source: internal/core/diagnostics/diagnostics.go:20
FailureReason returns a compact one-line control-state reason plus the full diagnostic artifact path. The artifact, not the ledger/spec summary, carries raw provider transcripts.
func Path(err error) string
Source: internal/core/diagnostics/diagnostics.go:9
Path returns the provider diagnostic path attached to err, when one exists.