use console.error instead of console.warn for error report