Skip to content
This repository was archived by the owner on Sep 28, 2024. It is now read-only.

Commit 312cb0f

Browse files
author
Alexey Ermishkin
committed
Proper error when rotate is called two times in a row
1 parent 77cf2e2 commit 312cb0f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/app/fetchtoken.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,5 @@ func fetchFunc(token, appToken string, vcli *client.VirgilHttpClient) (err error
9494
return nil
9595
}
9696

97-
return errors.New("no update token found.")
97+
return errors.New("no update token found")
9898
}

cmd/app/rotate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func RotateFunc(context *cli.Context, vcli *client.VirgilHttpClient) error {
7979
token, err = utils.CheckRetry(err, vcli)
8080
}
8181

82-
return nil
82+
return err
8383
}
8484

8585
func rotateFunc(accountToken, appToken string, vcli *client.VirgilHttpClient) error {

0 commit comments

Comments
 (0)