chore: improve errors and tests

This commit is contained in:
2024-03-23 21:05:57 +00:00
parent 5247fbd90b
commit ccc3668fa2
7 changed files with 262 additions and 30 deletions

View File

@@ -2,6 +2,7 @@ package render
import (
"errors"
"fmt"
"io"
)
@@ -26,5 +27,5 @@ func (mr *MultiRenderer) Render(w io.Writer, v any) error {
}
}
return ErrCannotRender
return fmt.Errorf("%w: %T", ErrCannotRender, v)
}