After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 619575 - Raise a more descriptive error when a child is not found.
Raise a more descriptive error when a child is not found.
Status: RESOLVED FIXED
Product: LDTP
Classification: Other
Component: ldtp2
2.0.0
Other All
: Normal major
: ---
Assigned To: LDTP Development Mailing List
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2010-05-25 06:52 UTC by Leo Arias
Modified: 2010-10-11 16:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Leo Arias 2010-05-25 06:52:59 UTC
On getchild function, when no matches are found ldtp raises a generic exception:

if not matches:
  raise LdtpServerException('Could not find a child.')

It would be more useful to show a message saying what we were looking for. Something like:
'Couldn't find child with name "%s", role "%s" and parent "%s"' % (child_name, role, parent)

Well, I'm not really used to the syntax of string formatting, but that's the idea.

Thanks,
pura vida.
Comment 1 Nagappan Alagappan 2010-05-25 08:32:32 UTC
Fixed in git repository. Thanks for the bug report
Comment 2 Leo Arias 2010-10-11 16:41:45 UTC
Thanks to you Nagappan.
*hug*