From 8257572891cbc94ca74a325050f388689d0c0845 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Mon, 28 May 2012 23:24:58 +0200 Subject: [PATCH] Better error message. --- asterisk_click2dial/asterisk_click2dial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asterisk_click2dial/asterisk_click2dial.py b/asterisk_click2dial/asterisk_click2dial.py index ba95b43..4d8cee4 100644 --- a/asterisk_click2dial/asterisk_click2dial.py +++ b/asterisk_click2dial/asterisk_click2dial.py @@ -508,7 +508,7 @@ class wizard_open_calling_partner(osv.osv_memory): res['partner_address_id'] = False else: _logger.debug("Could not get the calling number from Asterisk.") - raise osv.except_osv(_('Error :'), _("Could not get the calling number from Asterisk. Check your setup and look at the OpenERP debug logs.")) + raise osv.except_osv(_('Error :'), _("Could not get the calling number from Asterisk. Are you currently on the phone ? If yes, check your setup and look at the OpenERP debug logs.")) return res