Connect() will fail on non collection roots

This commit is contained in:
Christoph Polcin
2014-10-24 12:40:49 +02:00
parent f728828956
commit b8d7beb48c
2 changed files with 6 additions and 9 deletions

View File

@@ -36,7 +36,7 @@ func main() {
c := d.NewClient(*root, *usr, *pw)
if err := c.Connect(); err != nil {
Fail(err)
Fail(fmt.Sprintf("Failed to connect due to: %s", err.Error()))
}
if len(flag.Args()) > 0 {