1
0
Fork 0
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:
Andrews Medina 2013-11-30 01:02:09 -02:00
parent a6c9a332d0
commit e8437e8fcf

View file

@ -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