Improve the StateNotFound error message
Bug #1269649 reported by
Leo Arias
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Autopilot |
Fix Released
|
Medium
|
Nicholas Skaggs | ||
autopilot (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
We are currently raising exceptions like:
StateNotFoundError: State not found for class '*' and filters {'objectName': 'popoversElement'}
While it might be clear for people that know the autopilot internals, it mentions a state, a class and some filters that outsiders might not understand on the first read.
We should make it clearer. Here's thomi's suggestion:
Object not found with name 'ABC' and properties: foo=bar, baz=123
or:
Object not found with properties foo=bar, baz=123 (in the case where no object name was specified)
Related branches
lp:~nskaggs/autopilot/fix-state-verbiage
- Thomi Richards (community): Approve
- PS Jenkins bot: Needs Fixing (continuous-integration)
-
Diff: 74 lines (+11/-11)2 files modifiedautopilot/introspection/dbus.py (+3/-3)
autopilot/tests/unit/test_exceptions.py (+8/-8)
Changed in autopilot: | |
importance: | Low → Medium |
Changed in autopilot: | |
assignee: | nobody → Nicholas Skaggs (nskaggs) |
Changed in autopilot: | |
status: | Confirmed → Invalid |
status: | Invalid → Fix Released |
To post a comment you must log in.
This bug was fixed in the package autopilot - 1.4+14. 04.20140303- 0ubuntu1
--------------- 04.20140303- 0ubuntu1) trusty; urgency=low
autopilot (1.4+14.
[ Thomi Richards ]
* Prepare functional tests so that they can run on a device (Skips any
that cannot run on a device).
* Make proxy object attributes look more pythonic when calling
repr(...) or str(...) on them. (LP: #1279977)
[ Nicholas Skaggs ] /bugs.launchpad .net/autopilot/ +bug/1269649 (LP: #1269649)
* Fix the veribage for statenotfound errors, fixes
https:/
[ nskaggs ] /bugs.launchpad .net/autopilot/ +bug/1269649 (LP: #1269649)
* Fix the veribage for statenotfound errors, fixes
https:/
[ Christopher Lee ]
* Prepare functional tests so that they can run on a device (Skips any
that cannot run on a device).
-- Ubuntu daily release <email address hidden> Mon, 03 Mar 2014 04:38:08 +0000