# HG changeset patch # User Martin Geisler # Date 2010-08-30 20:47:38 # Node ID ee601a6264e0e78caa36a43709494669214fccfe # Parent ebfc46929f3e63d973bdff8988f68cd3ead8ec09 mail: use standard section.entry format in error message diff --git a/mercurial/mail.py b/mercurial/mail.py --- a/mercurial/mail.py +++ b/mercurial/mail.py @@ -36,7 +36,7 @@ def _smtp(ui): s = smtplib.SMTP(local_hostname=local_hostname) mailhost = ui.config('smtp', 'host') if not mailhost: - raise util.Abort(_('no [smtp]host in hgrc - cannot send mail')) + raise util.Abort(_('smtp.host not configured - cannot send mail')) mailport = int(ui.config('smtp', 'port', 25)) ui.note(_('sending mail: smtp host %s, port %s\n') % (mailhost, mailport))