Fix error catch syntax