Added console.errors for catch exceptions