From e8437e8fcffae3661b9decdc1c576083c0de5219 Mon Sep 17 00:00:00 2001 From: Andrews Medina Date: Sat, 30 Nov 2013 01:02:09 -0200 Subject: [PATCH] using `errors.New` instead `fmt.Error`. --- graphdriver/devmapper/deviceset.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/graphdriver/devmapper/deviceset.go b/graphdriver/devmapper/deviceset.go index a65c02f87e..f2e99d9ed7 100644 --- a/graphdriver/devmapper/deviceset.go +++ b/graphdriver/devmapper/deviceset.go @@ -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