It might happen that user's eth account has not been set up properly, or there is not enough gas. In that case he should be shown an error message informing of this.
Error that is thrown by web3.js:
Error: Account does not exist
or account balance too low
at Object.InvalidResponse (C:\dev\smartsafe\client\node_modules\web3\lib\web3\errors.js:35:16)
at Object.<anonymous> (C:\dev\smartsafe\client\node_modules\web3\lib\web3\requestmanager.js:86:36)
at C:\dev\smartsafe\client\node_modules\web3\lib\web3\ipcprovider.js:66:44
at Array.forEach (native)
at Socket.<anonymous> (C:\dev\smartsafe\client\node_modules\web3\lib\web3\ipcprovider.js:50:47)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at Pipe.onread (net.js:543:20)
It might happen that user's eth account has not been set up properly, or there is not enough gas. In that case he should be shown an error message informing of this.
Error that is thrown by web3.js: