Skip to content

Commit

Permalink
nit on error format. my mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffbean committed Jul 4, 2024
1 parent 9756c49 commit 6585b41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand All @@ -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{}
Expand All @@ -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{}
Expand Down

0 comments on commit 6585b41

Please sign in to comment.