Skip to content

Commit

Permalink
codis: file /tmp/codis/data/codis3/codis-demo/topom already exists (O…
Browse files Browse the repository at this point in the history
…penAtomFoundation#1662)

Modify it to the path of the exposed file in the log.

Fixes: OpenAtomFoundation#1661

Signed-off-by: yaoyinnan <[email protected]>
  • Loading branch information
yaoyinnan authored Jun 29, 2023
1 parent f4545b6 commit cac6914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codis/pkg/models/fs/fsclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func (c *Client) writeFile(realpath string, data []byte, noexists bool) error {
if noexists {
_, err := os.Stat(realpath)
if err == nil {
return errors.Errorf("file already exists")
return errors.Errorf("file %s already exists", realpath)
} else if !os.IsNotExist(err) {
return errors.Trace(err)
}
Expand Down

0 comments on commit cac6914

Please sign in to comment.