We have custom plugin which listens on pre-events such as "ProjectPermissionGrantRequestedEvent". Now if we want to cancel this event we do something like
pushEvent.cancel(i18nService.createKeyedMessage("customplugin.cancel"));
where customplugin.cancel =" Custom error "
In bitbucket, we can't see the custom error message whereas when we see the developer console,
For the api - PUT /projects/PROJECT_1/permissions/groups?permission=PROJECT_ADMIN&name=stash-users
The response was -
{"errors":[
{"context":null,"message":"Permission modification canceled","exceptionName":"com.atlassian.bitbucket.permission.PermissionModificationCanceledException","details":["Custom error"]}
]}
In the response,
1. The "message" is the bitbucket generic message but
2. If you see the "details", my custom error is registered but i'm not sure how to display it in the UI.
Please help.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.