1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-16 00:44:14 +01:00

Fix error messages for :contacts.

This commit is contained in:
Doug Kearns
2009-06-11 02:20:40 +10:00
parent 50d6d5de05
commit 2553cb6fcf

View File

@@ -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;
}