From 6585b41cc117b8ecbb4c5e4c355cac039d9279d7 Mon Sep 17 00:00:00 2001 From: Jeff Bean Date: Thu, 4 Jul 2024 01:14:23 +0000 Subject: [PATCH] nit on error format. my mistake --- conn.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conn.go b/conn.go index 74039fb5..2bcc1ef0 100644 --- a/conn.go +++ b/conn.go @@ -1065,7 +1065,7 @@ func (c *Conn) Create(path string, data []byte, flags int32, acl []ACL) (string, } if createMode.isTTL { - return "", fmt.Errorf("Create with TTL flag disallowed :%w", ErrInvalidFlags) + return "", fmt.Errorf("Create with TTL flag disallowed: %w", ErrInvalidFlags) } res := &createResponse{} @@ -1091,7 +1091,7 @@ func (c *Conn) CreateContainer(path string, data []byte, flag int32, acl []ACL) } if !createMode.isContainer { - return "", fmt.Errorf("CreateContainer requires container flag :%w", ErrInvalidFlags) + return "", fmt.Errorf("CreateContainer requires container flag: %w", ErrInvalidFlags) } res := &createResponse{} @@ -1111,7 +1111,7 @@ func (c *Conn) CreateTTL(path string, data []byte, flag int32, acl []ACL, ttl ti } if !createMode.isTTL { - return "", fmt.Errorf("CreateTTL requires TTL flag :%w", ErrInvalidFlags) + return "", fmt.Errorf("CreateTTL requires TTL flag: %w", ErrInvalidFlags) } res := &createResponse{}