mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 02:40:41 -07:00
Stash exception_renderer lambda in a constant
This commit is contained in:
@@ -153,7 +153,7 @@ module Liquid
|
||||
c = args.shift
|
||||
|
||||
if @rethrow_errors
|
||||
c.exception_renderer = ->(_e) { raise }
|
||||
c.exception_renderer = Liquid::EXCEPTION_RENDERER_LAMBDA
|
||||
end
|
||||
|
||||
c
|
||||
|
||||
Reference in New Issue
Block a user