fix: use correct error format

This commit is contained in:
decentral1se 2021-12-12 01:56:43 +01:00
parent f3e55e5023
commit 48e16c414c
Signed by untrusted user: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ func GetTagDigest(cl *client.Client, image reference.Named) (string, error) {
}
if token == "" {
logrus.Fatal("unable to retrieve registry token?")
return "", fmt.Errorf("unable to retrieve registry token?")
}
req.Header = http.Header{