Better errors for the console.