Handling Errors with try-catch-finally
What potential issue exists with this error handling approach?
function divide(a, b) {
try {
if (b === 0) {
throw new Error('Division by zero');
}
return a / b;
} catch (error) {
return Infinity;
}
}