Use better_errors editor links in sherlock

Remember to configure your `better_errors` editor to point to your program of preference
This commit is contained in:
Alejandro Rodríguez 2016-06-06 18:27:26 -04:00
parent 740a6ecba0
commit fbd2169f99
2 changed files with 11 additions and 3 deletions

View file

@ -6,7 +6,11 @@
%ul.well-list
- @query.application_backtrace.each do |location|
%li
= location.path
%strong
- if defined?(BetterErrors)
= link_to(location.path, BetterErrors.editor[location.path, location.line])
- else
= location.path
%small.light
= t('sherlock.line')
= location.line

View file

@ -11,13 +11,17 @@
= @query.duration.round(4)
= t('sherlock.milliseconds')
%li
- frame = @query.last_application_frame
%span.light
#{t('sherlock.origin')}:
%strong
= @query.last_application_frame.path
- if defined?(BetterErrors)
= link_to(frame.path, BetterErrors.editor[frame.path, frame.line])
- else
= frame.path
%small.light
= t('sherlock.line')
= @query.last_application_frame.line
= frame.line
.panel.panel-default
.panel-heading