Skip to content

Commit

Permalink
fix typos in error messages
Browse files Browse the repository at this point in the history
Signed-off-by: Ward Vandewege <ward@jhvc.com> (github: cure)
  • Loading branch information
cure committed Sep 3, 2014
1 parent 58dc474 commit a447894
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daemon/graphdriver/devmapper/attach_loopback.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func openNextAvailableLoopback(index int, sparseFile *os.File) (loopFile *os.Fil
// OpenFile adds O_CLOEXEC
loopFile, err = os.OpenFile(target, os.O_RDWR, 0644)
if err != nil {
log.Errorf("Error openning loopback device: %s", err)
log.Errorf("Error opening loopback device: %s", err)
return nil, ErrAttachLoopbackDevice
}

Expand Down Expand Up @@ -97,7 +97,7 @@ func attachLoopDevice(sparseName string) (loop *os.File, err error) {
// OpenFile adds O_CLOEXEC
sparseFile, err := os.OpenFile(sparseName, os.O_RDWR, 0644)
if err != nil {
log.Errorf("Error openning sparse file %s: %s", sparseName, err)
log.Errorf("Error opening sparse file %s: %s", sparseName, err)
return nil, ErrAttachLoopbackDevice
}
defer sparseFile.Close()
Expand Down

0 comments on commit a447894

Please sign in to comment.