use console.error for parser warnings