mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-27 15:41:35 +01:00
chore: use errors.Errorf
This commit is contained in:
@@ -3,7 +3,6 @@ package grpc
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"github.com/containers/image/v5/docker/reference"
|
||||
"github.com/crazy-max/diun/v4/pb"
|
||||
@@ -91,7 +90,7 @@ func (c *Client) ImageRemove(ctx context.Context, request *pb.ImageRemoveRequest
|
||||
}
|
||||
|
||||
if _, ok := images[ref.Name()]; !ok {
|
||||
return nil, fmt.Errorf("%s not found in database", ref.Name())
|
||||
return nil, errors.Errorf("%s not found in database", ref.Name())
|
||||
}
|
||||
|
||||
var tag string
|
||||
|
||||
Reference in New Issue
Block a user