swallow errors inside of a template

pull/2944/head
carlory 8 years ago
parent 787d486cf0
commit ad6a08bdd8

@ -202,7 +202,8 @@ func ToToml(v interface{}) string {
e := toml.NewEncoder(b)
err := e.Encode(v)
if err != nil {
return err.Error()
// Swallow errors inside of a template
return ""
}
return b.String()
}

Loading…
Cancel
Save