Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
virtcontainers/persist: fix typo in fs
Browse files Browse the repository at this point in the history
There is a typo 'writting' instead of 'writing' in a logger error.

Fixes: #2465

Signed-off-by: Liu Xiaodong <[email protected]>
  • Loading branch information
dong-liuliu committed Feb 18, 2020
1 parent ab260e4 commit 78bb6c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtcontainers/persist/fs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func (fs *FS) GlobalWrite(relativePath string, data []byte) error {

f, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE, fileMode)
if err != nil {
fs.Logger().WithError(err).WithField("file", path).Error("failed to open file for writting")
fs.Logger().WithError(err).WithField("file", path).Error("failed to open file for writing")
return err
}
defer f.Close()
Expand Down

0 comments on commit 78bb6c0

Please sign in to comment.