Added print_error method to ttt-tui