Added an error message when there is an exception in authorisation

This commit is contained in:
2016-06-06 03:53:55 -05:00
parent 4df4e620c1
commit 2b9aa467bd
5 changed files with 25 additions and 9 deletions

View File

@@ -20,4 +20,7 @@ def show_error_code(code):
if code == 201:
title = _(u"Restricted access")
message = _(u"Access to user's audio is denied by the owner. Error code {0}").format(code,)
return wx.MessageDialog(None, message, title, style=wx.ICON_ERROR).ShowModal()
return wx.MessageDialog(None, message, title, style=wx.ICON_ERROR).ShowModal()
def bad_authorisation():
return wx.MessageDialog(None, _(u"authorisation failed. Your configuration will not be saved. Please close and open again the application for authorising your account. Make sure you have typed your credentials correctly."), _(u"Error"), style=wx.ICON_ERROR).ShowModal()