github.com/tilt-dev/tilt@v0.33.15-0.20240515162809-0a22ed45d8a0/internal/rty/error.go (about) 1 package rty 2 3 // We want our tests to be able to handle errors. 4 // 5 // But we don't want errors in RTY rendering to stop the rendering pipeline. 6 // 7 // So we need a way to accumulate errors. 8 // By design, testing.T implements this interface. 9 type ErrorHandler interface { 10 Errorf(format string, args ...interface{}) 11 } 12 13 type SkipErrorHandler struct{} 14 15 func (SkipErrorHandler) Errorf(format string, args ...interface{}) { 16 // do nothing 17 }