#30779: technical_500.html: use filename:lineno format for exception location
--------------------------------------+------------------------------------
Reporter: Daniel Hahler | Owner: (none)
Type: Cleanup/optimization | Status: new
Component: Error reporting | Version: master
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
--------------------------------------+------------------------------------
Description changed by felixxm:
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
>
> https://github.com/django/django/pull/11789
New description:
Using
{{{
Exception Location: …/dj/views.py, line 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:5>
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.c7cac63541e3dbab3fbb00aacb6c6be0%40djangoproject.com.