expanded console.log error message