[LDTP-Dev] [Bug 619575] New: Raise a more descriptive error when a child is not found.
LDTP (bugzilla.gnome.org)
bugzilla at gnome.org
Mon May 24 23:53:02 PDT 2010
https://bugzilla.gnome.org/show_bug.cgi?id=619575
LDTP | ldtp2 | 2.0.0
Summary: Raise a more descriptive error when a child is not
found.
Classification: Other
Product: LDTP
Version: 2.0.0
OS/Version: All
Status: UNCONFIRMED
Severity: major
Priority: Normal
Component: ldtp2
AssignedTo: ldtp-dev at lists.freedesktop.org
ReportedBy: elopio at softwarelibrecr.org
QAContact: ldtp-dev at lists.freedesktop.org
GNOME target: ---
GNOME version: ---
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.
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the LDTP-dev
mailing list