mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 17:30:43 -07:00
Allow the exception handler to convert exceptions to hide error messages.
This commit is contained in:
@@ -102,6 +102,10 @@ class ErrorDrop < Liquid::Drop
|
||||
raise Liquid::SyntaxError, 'syntax error'
|
||||
end
|
||||
|
||||
def runtime_error
|
||||
raise RuntimeError, 'runtime error'
|
||||
end
|
||||
|
||||
def exception
|
||||
raise Exception, 'exception'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user