ytdl-web/pkg/ytdl/error.go

20 lines
248 B
Go

package ytdl
type Error struct {
stdout string
stderr string
child error
}
func (e *Error) Error() string {
return e.child.Error()
}
func (e *Error) Stdout() string {
return e.stdout
}
func (e *Error) Stderr() string {
return e.stderr
}