Displaying a custom flag/message on create issue page

We have a jira plugin, in that when we create an issue there is a external server call, which is connected to the mongo db. We need to allow to create issues even if it is there any errors while calling mongo db. In this scenario our create issue popup is getting freeze if it is there any error in mongo db call, once we reload only we are able to see the newly created issue. But what we want is, we need to pass the error message (saying that “There is a error while calling mongo db”) to create issue page without freezing. is there are any way to display a custom error message on create issue page immediately after complete creating issue ?