changeset 12090:ee601a6264e0 stable

mail: use standard section.entry format in error message
author Martin Geisler <mg@lazybytes.net>
date Mon, 30 Aug 2010 22:47:38 +0200
parents ebfc46929f3e
children 339bd18c772f 090dc5eef746
files mercurial/mail.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/mail.py	Fri Aug 27 22:36:35 2010 -0400
+++ b/mercurial/mail.py	Mon Aug 30 22:47:38 2010 +0200
@@ -36,7 +36,7 @@
     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))