Open chrismear opened 11 years ago
An example exception:
A ActionView::Template::Error occurred in one_click#dashboard:
Missing partial tasks/task_nil_class_vote with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :haml]}. Searched in:
"/var/www/oneclick.uk.coop/releases/20130222020342/app/views"
actionpack (3.2.11) lib/action_view/path_set.rb:58:in `find'
actionpack (3.2.11) lib/action_view/path_set.rb:58:in find' actionpack (3.2.11) lib/action_view/lookup_context.rb:109:in
find'
actionpack (3.2.11) lib/action_view/renderer/partial_renderer.rb:339:in find_template' actionpack (3.2.11) lib/action_view/renderer/partial_renderer.rb:333:in
find_partial'
actionpack (3.2.11) lib/action_view/renderer/partial_renderer.rb:222:in render' actionpack (3.2.11) lib/action_view/renderer/renderer.rb:41:in
render_partial'
actionpack (3.2.11) lib/action_view/renderer/renderer.rb:15:in render' actionpack (3.2.11) lib/action_view/helpers/rendering_helper.rb:24:in
render'
haml (3.1.7) lib/haml/helpers/action_view_mods.rb:11:in block in render_with_haml' haml (3.1.7) lib/haml/helpers.rb:90:in
non_haml'
haml (3.1.7) lib/haml/helpers/action_view_mods.rb:11:in render_with_haml' app/views/tasks/_task.html.haml:1:in
_app_views_taskstask_html_haml1496271850983529817_70351901783900'
actionpack (3.2.11) lib/action_view/template.rb:145:in block in render' activesupport (3.2.11) lib/active_support/notifications.rb:125:in
instrument'
actionpack (3.2.11) lib/action_view/template.rb:143:in render' actionpack (3.2.11) lib/action_view/renderer/partial_renderer.rb:265:in
render_partial'
actionpack (3.2.11) lib/action_view/renderer/partial_renderer.rb:238:in block in render' actionpack (3.2.11) lib/action_view/renderer/abstract_renderer.rb:38:in
block in instrument'
activesupport (3.2.11) lib/active_support/notifications.rb:123:in block in instrument' activesupport (3.2.11) lib/active_support/notifications/instrumenter.rb:20:in
instrument'
activesupport (3.2.11) lib/active_support/notifications.rb:123:in instrument' actionpack (3.2.11) lib/action_view/renderer/abstract_renderer.rb:38:in
instrument'
actionpack (3.2.11) lib/action_view/renderer/partial_renderer.rb:237:in render' actionpack (3.2.11) lib/action_view/renderer/renderer.rb:41:in
render_partial'
actionpack (3.2.11) lib/action_view/renderer/renderer.rb:15:in render' actionpack (3.2.11) lib/action_view/helpers/rendering_helper.rb:24:in
render'
haml (3.1.7) lib/haml/helpers/action_view_mods.rb:11:in block in render_with_haml' haml (3.1.7) lib/haml/helpers.rb:90:in
non_haml'
haml (3.1.7) lib/haml/helpers/action_view_mods.rb:11:in render_with_haml' app/views/one_click/coop/dashboard.html.haml:19:in
block (2 levels) in _app_views_one_click_coop_dashboard_html_haml4114867297557242875_55368960'
haml (3.1.7) lib/haml/helpers/action_view_mods.rb:93:in block in capture_with_haml' haml (3.1.7) lib/haml/helpers.rb:345:in
call'
haml (3.1.7) lib/haml/helpers.rb:345:in block in capture_haml' haml (3.1.7) lib/haml/helpers.rb:569:in
with_haml_buffer'
haml (3.1.7) lib/haml/helpers.rb:341:in capture_haml' haml (3.1.7) lib/haml/helpers/xss_mods.rb:61:in
capture_haml_with_haml_xss'
haml (3.1.7) lib/haml/helpers/action_view_mods.rb:93:in capture_with_haml' actionpack (3.2.11) lib/action_view/helpers/record_tag_helper.rb:102:in
content_tag_for_single_record'
actionpack (3.2.11) lib/action_view/helpers/record_tag_helper.rb:89:in content_tag_for' app/views/one_click/coop/dashboard.html.haml:18:in
block in _app_views_one_click_coop_dashboard_html_haml4114867297557242875_55368960'
activerecord (3.2.11) lib/active_record/relation/delegation.rb:6:in each' activerecord (3.2.11) lib/active_record/relation/delegation.rb:6:in
each'
app/views/one_click/coop/dashboard.html.haml:17:in `_app_views_one_click_coop_dashboard_html_haml4114867297557242875_55368960'
actionpack (3.2.11) lib/action_view/template.rb:145:inblock in render' activesupport (3.2.11) lib/active_support/notifications.rb:125:in
instrument'
actionpack (3.2.11) lib/action_view/template.rb:143:inrender' actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:47:in
block (2 levels) in render_template'
actionpack (3.2.11) lib/action_view/renderer/abstract_renderer.rb:38:inblock in instrument' activesupport (3.2.11) lib/active_support/notifications.rb:123:in
block in instrument'
activesupport (3.2.11) lib/active_support/notifications/instrumenter.rb:20:ininstrument' activesupport (3.2.11) lib/active_support/notifications.rb:123:in
instrument'
actionpack (3.2.11) lib/action_view/renderer/abstract_renderer.rb:38:ininstrument' actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:46:in
block in render_template'
actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:54:inrender_with_layout' actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:45:in
render_template'
actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:18:inrender' actionpack (3.2.11) lib/action_view/renderer/renderer.rb:36:in
render_template'
actionpack (3.2.11) lib/action_view/renderer/renderer.rb:17:inrender' actionpack (3.2.11) lib/abstract_controller/rendering.rb:110:in
_render_template'
actionpack (3.2.11) lib/action_controller/metal/streaming.rb:225:in_render_template' actionpack (3.2.11) lib/abstract_controller/rendering.rb:103:in
render_to_body'
actionpack (3.2.11) lib/action_controller/metal/renderers.rb:28:inrender_to_body' actionpack (3.2.11) lib/action_controller/metal/compatibility.rb:50:in
render_to_body'
actionpack (3.2.11) lib/abstract_controller/rendering.rb:88:inrender' actionpack (3.2.11) lib/action_controller/metal/rendering.rb:16:in
render'
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:40:inblock (2 levels) in render' activesupport (3.2.11) lib/active_support/core_ext/benchmark.rb:5:in
block in ms'
/home/oneclickorgs/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/benchmark.rb:295:inrealtime' activesupport (3.2.11) lib/active_support/core_ext/benchmark.rb:5:in
ms'
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:40:inblock in render' actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:83:in
cleanup_view_runtime'
activerecord (3.2.11) lib/active_record/railties/controller_runtime.rb:24:incleanup_view_runtime' actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:39:in
render'
actionpack (3.2.11) lib/action_controller/metal/implicit_render.rb:10:indefault_render' actionpack (3.2.11) lib/action_controller/metal/implicit_render.rb:5:in
send_action'
actionpack (3.2.11) lib/abstract_controller/base.rb:167:inprocess_action' actionpack (3.2.11) lib/action_controller/metal/rendering.rb:10:in
process_action'
actionpack (3.2.11) lib/abstract_controller/callbacks.rb:18:inblock in process_action' activesupport (3.2.11) lib/active_support/callbacks.rb:491:in
_run4141620694768510006process_action1813270307908032504callbacks'
activesupport (3.2.11) lib/active_support/callbacks.rb:405:in__run_callback' activesupport (3.2.11) lib/active_support/callbacks.rb:385:in
_run_process_action_callbacks'
activesupport (3.2.11) lib/active_support/callbacks.rb:81:inrun_callbacks' actionpack (3.2.11) lib/abstract_controller/callbacks.rb:17:in
process_action'
actionpack (3.2.11) lib/action_controller/metal/rescue.rb:29:inprocess_action' actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:30:in
block in process_action'
activesupport (3.2.11) lib/active_support/notifications.rb:123:inblock in instrument' activesupport (3.2.11) lib/active_support/notifications/instrumenter.rb:20:in
instrument'
activesupport (3.2.11) lib/active_support/notifications.rb:123:ininstrument' actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:29:in
process_action'
actionpack (3.2.11) lib/action_controller/metal/params_wrapper.rb:207:inprocess_action' activerecord (3.2.11) lib/active_record/railties/controller_runtime.rb:18:in
process_action'
actionpack (3.2.11) lib/abstract_controller/base.rb:121:inprocess' actionpack (3.2.11) lib/abstract_controller/rendering.rb:45:in
process'
actionpack (3.2.11) lib/action_controller/metal.rb:203:indispatch' actionpack (3.2.11) lib/action_controller/metal/rack_delegation.rb:14:in
dispatch'
actionpack (3.2.11) lib/action_controller/metal.rb:246:inblock in action' actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:73:in
call'
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:73:indispatch' actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:36:in
call'
journey (1.0.4) lib/journey/router.rb:68:inblock in call' journey (1.0.4) lib/journey/router.rb:56:in
each'
journey (1.0.4) lib/journey/router.rb:56:incall' actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:601:in
call'
exception_notification_rails3 (1.2.0) lib/exception_notifier.rb:34:incall' actionpack (3.2.11) lib/action_dispatch/middleware/best_standards_support.rb:17:in
call'
rack (1.4.3) lib/rack/etag.rb:23:incall' rack (1.4.3) lib/rack/conditionalget.rb:25:in
call'
actionpack (3.2.11) lib/action_dispatch/middleware/head.rb:14:incall' actionpack (3.2.11) lib/action_dispatch/middleware/params_parser.rb:21:in
call'
actionpack (3.2.11) lib/action_dispatch/middleware/flash.rb:242:incall' rack (1.4.3) lib/rack/session/abstract/id.rb:210:in
context'
rack (1.4.3) lib/rack/session/abstract/id.rb:205:incall' actionpack (3.2.11) lib/action_dispatch/middleware/cookies.rb:341:in
call'
activerecord (3.2.11) lib/active_record/query_cache.rb:64:incall' activerecord (3.2.11) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in
call'
actionpack (3.2.11) lib/action_dispatch/middleware/callbacks.rb:28:inblock in call' activesupport (3.2.11) lib/active_support/callbacks.rb:405:in
_run3456604201231537979call3864565642261085349callbacks'
activesupport (3.2.11) lib/active_support/callbacks.rb:405:in`run_callback'
activesupport (3.2.11) lib/active_support/callbacks.rb:385:in _run_call_callbacks' activesupport (3.2.11) lib/active_support/callbacks.rb:81:in
run_callbacks'
actionpack (3.2.11) lib/action_dispatch/middleware/callbacks.rb:27:in call' actionpack (3.2.11) lib/action_dispatch/middleware/remote_ip.rb:31:in
call'
actionpack (3.2.11) lib/action_dispatch/middleware/debug_exceptions.rb:16:in call' actionpack (3.2.11) lib/action_dispatch/middleware/show_exceptions.rb:56:in
call'
railties (3.2.11) lib/rails/rack/logger.rb:32:in call_app' railties (3.2.11) lib/rails/rack/logger.rb:16:in
block in call'
activesupport (3.2.11) lib/active_support/tagged_logging.rb:22:in tagged' railties (3.2.11) lib/rails/rack/logger.rb:16:in
call'
actionpack (3.2.11) lib/action_dispatch/middleware/request_id.rb:22:in call' rack (1.4.3) lib/rack/methodoverride.rb:21:in
call'
rack (1.4.3) lib/rack/runtime.rb:17:in call' activesupport (3.2.11) lib/active_support/cache/strategy/local_cache.rb:72:in
call'
rack (1.4.3) lib/rack/lock.rb:15:in call' actionpack (3.2.11) lib/action_dispatch/middleware/static.rb:62:in
call'
rack-cache (1.2) lib/rack/cache/context.rb:136:in forward' rack-cache (1.2) lib/rack/cache/context.rb:245:in
fetch'
rack-cache (1.2) lib/rack/cache/context.rb:185:in lookup' rack-cache (1.2) lib/rack/cache/context.rb:66:in
call!'
rack-cache (1.2) lib/rack/cache/context.rb:51:in call' railties (3.2.11) lib/rails/engine.rb:479:in
call'
railties (3.2.11) lib/rails/application.rb:223:in call' rack (1.4.3) lib/rack/content_length.rb:14:in
call'
railties (3.2.11) lib/rails/rack/log_tailer.rb:17:in call' rack (1.4.3) lib/rack/handler/webrick.rb:59:in
service'
/home/oneclickorgs/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/webrick/httpserver.rb:138:in service' /home/oneclickorgs/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/webrick/httpserver.rb:94:in
run'
/home/oneclickorgs/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
They ought to be much more defensive, i.e. display a generic message or render nothing at all.