diff --git a/core/config/xml/xml.go b/core/config/xml/xml.go index 699dbe28..c260d3b5 100644 --- a/core/config/xml/xml.go +++ b/core/config/xml/xml.go @@ -72,12 +72,12 @@ func (xc *Config) ParseData(data []byte) (config.Configer, error) { v := d["config"] if v == nil { - return nil, fmt.Errorf("xml parse should incluce in tags") + return nil, fmt.Errorf("xml parse should include in tags") } confVal, ok := v.(map[string]interface{}) if !ok { - return nil, fmt.Errorf("xml parse tags should incluce sub tags") + return nil, fmt.Errorf("xml parse tags should include sub tags") } x.data = config.ExpandValueEnvForMap(confVal) diff --git a/core/config/xml/xml_test.go b/core/config/xml/xml_test.go index 6ab00726..2807be69 100644 --- a/core/config/xml/xml_test.go +++ b/core/config/xml/xml_test.go @@ -26,7 +26,7 @@ import ( func TestXML(t *testing.T) { var ( - // xml parse should incluce in tags + // xml parse should include in tags xmlcontext = ` beeapi @@ -158,7 +158,7 @@ func TestXMLMissConfig(t *testing.T) { c := &Config{} _, err := c.ParseData([]byte(xmlcontext1)) - assert.Equal(t, "xml parse should incluce in tags", err.Error()) + assert.Equal(t, "xml parse should include in tags", err.Error()) xmlcontext2 := ` @@ -166,7 +166,7 @@ func TestXMLMissConfig(t *testing.T) { ` _, err = c.ParseData([]byte(xmlcontext2)) - assert.Equal(t, "xml parse tags should incluce sub tags", err.Error()) + assert.Equal(t, "xml parse tags should include sub tags", err.Error()) } type Section struct {