summaryrefslogtreecommitdiff
path: root/replacer.go
diff options
context:
space:
mode:
Diffstat (limited to 'replacer.go')
-rw-r--r--replacer.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/replacer.go b/replacer.go
index b8b2267..aa943cf 100644
--- a/replacer.go
+++ b/replacer.go
@@ -238,6 +238,8 @@ func toString(val any) string {
return v
case fmt.Stringer:
return v.String()
+ case error:
+ return v.Error()
case byte:
return string(v)
case []byte: