comparison frontends/src/jp/base.py @ 971:8ca5c990ed92

jp: "disco" subcommand, moved into a new "info" subcommand + added "version" subcommand which get software version
author Goffi <goffi@goffi.org>
date Wed, 02 Apr 2014 12:31:15 +0200
parents 2e052998c7eb
children d87aa6bdb0b4
comparison
equal deleted inserted replaced
970:2e052998c7eb 971:8ca5c990ed92
221 - 1 when the profile doesn't exists 221 - 1 when the profile doesn't exists
222 - 1 when there is a connection error 222 - 1 when there is a connection error
223 """ 223 """
224 # FIXME: need better exit codes 224 # FIXME: need better exit codes
225 225
226 def cant_connect(): 226 def cant_connect(failure):
227 error(_(u"Can't connect profile")) 227 error(_(u"Can't connect profile [%s]") % failure)
228 self.quit(1) 228 self.quit(1)
229 229
230 self.profile = self.bridge.getProfileName(self.args.profile) 230 self.profile = self.bridge.getProfileName(self.args.profile)
231 231
232 if not self.profile: 232 if not self.profile: