- print error in Format4Output

This commit is contained in:
gazebo
2018-10-20 10:50:56 +08:00
parent 7cd0d5aa66
commit e28750b14e

View File

@@ -325,6 +325,7 @@ func Format4Output(obj interface{}, isSingleLine bool) (retVal string) {
}
}
if err != nil {
baseapi.SugarLogger.Infof("Format4Output Marshal:%v failed with error:%v", obj, err)
retVal = fmt.Sprintf("%v", obj)
}
}