mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
* Upgrade otel collector to v0.21.0 It requires of pinning a version of cmux, which has conveniently adopted go modules * Update CHANGELOG * Explain why cmux pin is necessary
31 lines
614 B
Go
31 lines
614 B
Go
package config
|
|
|
|
import "fmt"
|
|
|
|
// UnsupportedDirective error.
|
|
type UnsupportedDirective struct {
|
|
text string
|
|
}
|
|
|
|
// Error implements the error interface for unsupported directives.
|
|
func (e UnsupportedDirective) Error() string {
|
|
return e.text
|
|
}
|
|
|
|
// Invalid config error.
|
|
type Invalid struct {
|
|
text string
|
|
}
|
|
|
|
// Error implements the error interface for invalid config error.
|
|
func (e Invalid) Error() string {
|
|
return e.text
|
|
}
|
|
|
|
// InvalidErrorf creates a new Invalid error.
|
|
func InvalidErrorf(format string, a ...interface{}) Invalid {
|
|
return Invalid{
|
|
text: fmt.Sprintf("invalid krb5 config "+format, a...),
|
|
}
|
|
}
|