From a6978f6542d148474dbbfafc41cb57fe03a350d8 Mon Sep 17 00:00:00 2001 From: Adrian Turjak Date: Thu, 8 Feb 2018 16:13:40 +1300 Subject: [PATCH] Fix non-generic email error msg Change-Id: Ic80cd8438352917e90bc0e28ba2f49884ee079a2 --- adjutant/api/v1/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adjutant/api/v1/utils.py b/adjutant/api/v1/utils.py index e95ba26..e6e5ee1 100644 --- a/adjutant/api/v1/utils.py +++ b/adjutant/api/v1/utils.py @@ -74,7 +74,7 @@ def send_stage_email(task, email_conf, token=None): if len(emails) > 1: notes = { 'errors': - (("Error: Unable to send token, More than one email for" + + (("Error: Unable to send update, more than one email for" + " task: %s") % task.uuid) } create_notification(task, notes, error=True) @@ -136,7 +136,7 @@ def send_stage_email(task, email_conf, token=None): except SMTPException as e: notes = { 'errors': - ("Error: '%s' while emailing token for task: %s" % + ("Error: '%s' while emailing update for task: %s" % (e, task.uuid)) }