diff --git a/src/github.com/mickep76/etcd-edit/etcd-edit.go b/src/github.com/mickep76/etcd-edit/etcd-edit.go index 4348f15..b62fc36 100644 --- a/src/github.com/mickep76/etcd-edit/etcd-edit.go +++ b/src/github.com/mickep76/etcd-edit/etcd-edit.go @@ -166,7 +166,7 @@ EDIT: if !result.Valid() { for _, e := range result.Errors() { - fmt.Printf(" - %s: %s\n", e.Field(), e.Description()) + fmt.Printf("%s: %s\n", strings.Replace(e.Context().String("/"), "(root)", *dir, 1), e.Description()) } fmt.Printf("Do you want to correct the changes? [yes|no]") diff --git a/src/github.com/mickep76/etcd-import/etcd-import.go b/src/github.com/mickep76/etcd-import/etcd-import.go index 3c7fbed..dcf7fec 100644 --- a/src/github.com/mickep76/etcd-import/etcd-import.go +++ b/src/github.com/mickep76/etcd-import/etcd-import.go @@ -120,7 +120,7 @@ func main() { if !result.Valid() { for _, e := range result.Errors() { - fmt.Printf(" - %s: %s\n", e.Field(), e.Description()) + fmt.Printf("%s: %s\n", strings.Replace(e.Context().String("/"), "(root)", *dir, 1), e.Description()) } os.Exit(1) }