mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
using errors.New
instead fmt.Error
.
This commit is contained in:
parent
a6c9a332d0
commit
e8437e8fcf
1 changed files with 3 additions and 2 deletions
|
@ -2,6 +2,7 @@ package devmapper
|
|||
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/dotcloud/docker/utils"
|
||||
"io"
|
||||
|
@ -439,11 +440,11 @@ func (devices *DeviceSet) initDevmapper(doInit bool) error {
|
|||
hasMetadata := devices.hasImage("metadata")
|
||||
|
||||
if !doInit && !hasData {
|
||||
return fmt.Error("Looback data file not found")
|
||||
return errors.New("Looback data file not found")
|
||||
}
|
||||
|
||||
if !doInit && !hasMetadata {
|
||||
return fmt.Error("Looback metadata file not found")
|
||||
return errors.New("Looback metadata file not found")
|
||||
}
|
||||
|
||||
createdLoopback := !hasData || !hasMetadata
|
||||
|
|
Loading…
Reference in a new issue