1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 14:23:11 +00:00

do not panic

This commit is contained in:
Ivan Mikushin
2015-08-20 18:06:48 +05:00
parent b0fb2ff875
commit aa1af05d46
4 changed files with 14 additions and 19 deletions

View File

@@ -155,7 +155,7 @@ func RandSeq(n int) string {
func Convert(from, to interface{}) error {
bytes, err := yaml.Marshal(from)
if err != nil {
log.WithFields(log.Fields{"from": from}).Panicln(err)
log.WithFields(log.Fields{"from": from, "err": err}).Warn("Error serializing to YML")
return err
}