We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e36701 commit 1e38b25Copy full SHA for 1e38b25
pkg/instance/instance.go
@@ -33,7 +33,12 @@ func (ins *baseTcInstance) GetMonitorQueryKey() string {
33
return ins.instanceId
34
}
35
36
-func (ins *baseTcInstance) GetFieldValueByName(name string) (string, error) {
+func (ins *baseTcInstance) GetFieldValueByName(name string) (val string, err error) {
37
+ defer func() {
38
+ if err := recover(); err != nil {
39
+ //nothing ignore err
40
+ }
41
+ }()
42
v := ins.value.FieldByName(name)
43
if v.Kind() == reflect.Ptr {
44
v = reflect.Indirect(v)
0 commit comments