react js try catch error message