#30779: technical_500.html: use filename:lineno format for exception location
-------------------------------------+-------------------------------------
Reporter: Daniel Hahler | Owner: (none)
Type: | Status: new
Cleanup/optimization |
Component: Error reporting | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Daniel Hahler):
* needs_better_patch: 0 => 1
* has_patch: 0 => 1
Old description:
> Using
> {{{
> Exception Location: …/dj/views.py:28 (in form_valid)
> }}}
>
> instead of
> {{{
> Exception Location: …/dj/views.py in form_valid, line 28
> }}}
>
> would allow for easier copy'n'paste of the location for going there in an
> editor.
>
> The format ``fname:lnum`` is usually handled there to go to the line
> number there directly.
>
> By default this does not work as good as it could then, since browsers
> will not include the ":" on double-click (tested Firefox and
> qutebrowser), but the "text-select" CSS property can be used for this,
> which then selected it with a single click already. Ref:
> https://developer.mozilla.org/en-US/docs/Web/CSS/user-select
New description:
Using
{{{
Exception Location: …/dj/views.py:28 (in form_valid)
}}}
instead of
{{{
Exception Location: …/dj/views.py in form_valid, line 28
}}}
would allow for easier copy'n'paste of the location for going there in an
editor.
The format ``fname:lnum`` is usually handled there to go to the line
number there directly.
By default this does not work as good as it could then, since browsers
will not include the ":" on double-click (tested Firefox and qutebrowser),
but the "text-select" CSS property can be used for this, which then
selected it with a single click already. Ref:
https://developer.mozilla.org/en-US/docs/Web/CSS/user-select
https://github.com/django/django/pull/11789
--
--
Ticket URL: <https://code.djangoproject.com/ticket/30779#comment:1>
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/065.7e2df2461ea2b017660cdc596d71741d%40djangoproject.com.