Yep, would a console.error(error) suffice?