# HG changeset patch # User Waqas Hussain # Date 1274643308 -18000 # Node ID 826cb5f1859b32eecffe730f0c632a37105277ea # Parent 7426727548ed7a26d8831cb62f6bcd41da1a4b9d rostermanager: Return an error string when subscription test fails due to an error. diff -r 7426727548ed -r 826cb5f1859b core/rostermanager.lua --- a/core/rostermanager.lua Mon May 24 00:29:45 2010 +0500 +++ b/core/rostermanager.lua Mon May 24 00:35:08 2010 +0500 @@ -191,9 +191,9 @@ end function is_contact_subscribed(username, host, jid) - local roster = load_roster(username, host); + local roster, err = load_roster(username, host); local item = roster[jid]; - return item and (item.subscription == "from" or item.subscription == "both"); + return item and (item.subscription == "from" or item.subscription == "both"), err; end function is_contact_pending_in(username, host, jid)