~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/ui/text.py

  • Committer: Martin Pool
  • Date: 2009-09-23 06:25:16 UTC
  • mto: This revision was merged to the branch mainline in revision 4745.
  • Revision ID: mbp@sourcefrog.net-20090923062516-3fi9kj18c0yuhd5w
Add UIFactory.show_error, show_warning, show_message

Show diffs side-by-side

added added

removed removed

Lines of Context:
173
173
        self._progress_view.show_transport_activity(transport,
174
174
            direction, byte_count)
175
175
 
 
176
    def show_error(self, msg):
 
177
        self.clear_term()
 
178
        self.stderr.write("bzr: error: %s\n" % msg)
 
179
 
176
180
    def _progress_updated(self, task):
177
181
        """A task has been updated and wants to be displayed.
178
182
        """