title: How to properly use revert reason in web3.js to show meaningful error message in UI
body: <p>I want to use web3.js to show revert reason to user, for example in the case of user trying to mint erc721 token that has already been minted. I am using try catch block and see the error message but I want to isolate the error message to show the user a meaningful reason. Thanks in advance.</p>