Add better debugging for form errors

webchick - May 19, 2008 - 21:12
Project:Drupal
Version:7.x-dev
Component:simpletest.module
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Right now, if you attempt to fill out a form that doesn't exist on a page, you get:

Found the requested form - FAIL

It'd be nice if it was something like:

Found the requested form at node/add/blah - FAIL

so you have an idea where to start debugging.

#1

webchick - May 19, 2008 - 21:13

#2

webchick - May 19, 2008 - 21:14
Component:base system» simpletest.module

#3

boombatower - May 20, 2008 - 04:35
Status:patch (code needs review)» patch (reviewed & tested by the community)

Broke the block test by removing the permissions from the test user and the fail statement displayed correctly.

This would be very useful. Everytime I saw that message I had to look at context and try and figure out what drupalPost call was causing it. This patch would make that much easier.

#4

catch - May 20, 2008 - 09:04

Already RTBC but +1 from me. Very nice change.

#5

Dries - May 20, 2008 - 20:28
Status:patch (reviewed & tested by the community)» fixed

Committed to CVS HEAD. Thanks.

#6

Anonymous (not verified) - June 3, 2008 - 20:32
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.