Add an error console callback