Skip to content

Commit

Permalink
#215 Show error to user
Browse files Browse the repository at this point in the history
  • Loading branch information
ensemenova committed Jan 18, 2021
1 parent 0b310d0 commit 00851cb
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ function FormulaInput({ value }) {
class Analyse extends Component {
constructor(props) {
super(props)
props.onAnalyse().catch(props.onCancel)
props.onAnalyse().catch(e => {
//error could possibly be an invalid state of molecule.TODO handling such cases described in #251
alert(e)
props.onCancel()
})
}

render() {
Expand Down

0 comments on commit 00851cb

Please sign in to comment.