[console] Implement error() method