~toabctl/modemmanager/trunk

Viewing all changes in revision 5716.

  • Committer: Dan Williams
  • Author(s): Aleksander Morgado
  • Date: 2018-12-07 16:23:52 UTC
  • Revision ID: git-v1:cae7377a61db232c2cc0ccc0ad6bbdd1c709712b
iface-modem: always connect all method handlers, even in failed state

So that the returned error is much more descriptive.

E.g. instead of this:
    $ sudo mmcli -m 0 -e
    error: couldn't enable the modem: 'GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Method Enable is not implemented on interface org.freedesktop.ModemManager1.Modem'
We'll get this:
    $ sudo mmcli -m 0 -e
    error: couldn't enable the modem: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.WrongState: modem in failed state'

https://gitlab.freedesktop.org/mobile-broadband/ModemManager/issues/96

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: