Files
MarioandGitHub 264a83bb41 Upgrade otel collector to v0.21.0 (#627)
* 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
2021-04-05 12:19:18 -04:00

19 lines
482 B
Go

package ndr
import "fmt"
// Malformed implements the error interface for malformed NDR encoding errors.
type Malformed struct {
EText string
}
// Error implements the error interface on the Malformed struct.
func (e Malformed) Error() string {
return fmt.Sprintf("malformed NDR stream: %s", e.EText)
}
// Errorf formats an error message into a malformed NDR error.
func Errorf(format string, a ...interface{}) Malformed {
return Malformed{EText: fmt.Sprintf(format, a...)}
}