- `catch()` in `try...catch` should not return anything. - Correct format: `throw new Error(error)`
catch()intry...catchshould not return anything.throw new Error(error)