Skip to content

Commit 10cf638

Browse files
committed
[notify] Improve error reporting
Signed-off-by: David Greaves <david.greaves@jolla.com>
1 parent b8e6ba9 commit 10cf638

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

participants/notify.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,12 +368,12 @@ def handle_notification(self, wid):
368368
raise RuntimeError("Missing mandatory field or param 'subject'")
369369

370370
if not (template_body or template_name):
371-
raise RuntimeError("Both of field or param 'template_body' and "
372-
"'template_name' missing")
371+
raise RuntimeError("Neither 'template_body' nor 'template'"
372+
" are provided as a field or param")
373373

374374
if template_body and template_name:
375375
raise RuntimeError("Both field or param 'template_body' and "
376-
"'template_name' defined")
376+
"'template_name' defined")
377377

378378
if template_name:
379379
template_fname = os.path.join(self.email_store, template_name)

0 commit comments

Comments
 (0)