From 2553cb6fcf95d6f2a796ae19844c21d43ed98a42 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 11 Jun 2009 02:20:40 +1000 Subject: [PATCH] Fix error messages for :contacts. --- muttator/content/addressbook.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/muttator/content/addressbook.js b/muttator/content/addressbook.js index 22c84fdf..0337e194 100644 --- a/muttator/content/addressbook.js +++ b/muttator/content/addressbook.js @@ -180,9 +180,13 @@ function Addressbook() //{{{ addresses.push([displayName, card.primaryEmail]); } } + if (addresses.length < 1) { - liberator.echoerr("E94: No matching contact for " + filter, commandline.FORCE_SINGLELINE); + if (!filter) + liberator.echoerr("Exxx: No contacts", commandline.FORCE_SINGLELINE); + else + liberator.echoerr("Exxx: No contacts matching string '" + filter + "'", commandline.FORCE_SINGLELINE); return false; }