Using the latest OpenZeppelin NetworkJS (https://github.com/OpenZeppelin/openzeppelin-network.js/tree/master)
useWeb3Injected() doesn’t catch the situation when no web3 provider is available and instead throws an error if MetaMask (or other injected provider) is not found. This error crashes the users’ website completely. There seems to be no way to catch this error and error suitable UI to inform users they are missing Metamask. See the relevant line in the code.
Any ideas? It would be nice to catch the error and do something with it, like inform the user.