Call console.error() if there is an error here.