Files
coder/coderd/x/chatd/chattool/teststatuserror_test.go
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
296 B
Go
Raw Normal View History

package chattool_test
import "fmt"
type statusError struct {
statusCode int
message string
}
func (e statusError) Error() string {
if e.message != "" {
return e.message
}
return fmt.Sprintf("status %d", e.statusCode)
}
func (e statusError) StatusCode() int {
return e.statusCode
}