Skip to content

Commit 6d428c2

Browse files
add more info to log message
1 parent 2ca706b commit 6d428c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/datastore/target/netconf/xml2SchemapbAdapter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func (x *XML2sdcpbConfigAdapter) transformField(ctx context.Context, e *etree.El
167167
// process terminal values
168168
tv, err := StringElementToTypedValue(e.Text(), ls)
169169
if err != nil {
170-
return fmt.Errorf("unable to convert value [%s] at path [%s]: %w", e.Text(), e.GetPath(), err)
170+
return fmt.Errorf("unable to convert value [%s] at path [%s] according to SchemaLeafType [%#v]: %w", e.Text(), e.GetPath(), ls.Type, err)
171171
}
172172
// copy pathElems
173173
npelem := make([]*sdcpb.PathElem, 0, len(pelems))

0 commit comments

Comments
 (0)