move catch one line up next to }. That is,
try {
...
} catch