then add a console.error in the catch thought