nit style guide says to put the `catch(error) {` on a new line