|
@@ -88,7 +88,7 @@ func (graph *Graph) Exists(id string) bool {
|
|
func (graph *Graph) Get(name string) (*image.Image, error) {
|
|
func (graph *Graph) Get(name string) (*image.Image, error) {
|
|
id, err := graph.idIndex.Get(name)
|
|
id, err := graph.idIndex.Get(name)
|
|
if err != nil {
|
|
if err != nil {
|
|
- return nil, err
|
|
|
|
|
|
+ return nil, fmt.Errorf("could not find image: %v", err)
|
|
}
|
|
}
|
|
img, err := image.LoadImage(graph.ImageRoot(id))
|
|
img, err := image.LoadImage(graph.ImageRoot(id))
|
|
if err != nil {
|
|
if err != nil {
|