#34427: Improve error message for incorrect context processors
---------------------------------+-----------------------------------------
     Reporter:  Adam Johnson     |                    Owner:  David Sanders
         Type:  New feature      |                   Status:  assigned
    Component:  Template system  |                  Version:  dev
     Severity:  Normal           |               Resolution:
     Keywords:                   |             Triage Stage:  Accepted
    Has patch:  1                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+-----------------------------------------
Changes (by David Sanders):

 * has_patch:  0 => 1


Comment:

 Thanks Adam, good idea 👍

 I've taken a stab, left it as a TypeError but just improved the message.
 I'm not sure about the "It returned <blah> instead." part. With templates
 the "None" is hardcoded as it's a literal None check. For this I'm not
 sure what the best way to generalise the return value/type in English is
 😁. If you have any ideas I'm open.

 And as I write this the ever so quick felixx has already started reviewing
 though so it may all get resolved by the time you read this 🤣

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34427#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701872758d5d4-e9a9a1f7-25df-4ae7-abb8-b0dc7ef1efcb-000000%40eu-central-1.amazonses.com.

Reply via email to