-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
approve/unapprove: Provide better error messages for repeat actions
Users are presented with the following error message if an already approved MR is approved again: 2021/05/07 10:34:35 mr_approve.go:55: POST https://gitlab.com/api/v4/projects/24140364/merge_requests/119/approve: 401 {message: 401 Unauthorized} Similarily, when an unapproved MR is unapproved again: 2021/05/07 10:35:01 mr_unapprove.go:55: POST https://gitlab.com/api/v4/projects/24140364/merge_requests/119/unapprove: 40 These messages are confusing and should state that the MR was already approved or unapproved. Add better error messages for repeat approve and unapprove actions. Signed-off-by: Prarit Bhargava <prarit@redhat.com>
- Loading branch information
Showing
4 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters