mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
Don't catch Exception when parsing YAML frontmatter
This commit is contained in:
parent
5f84833fc5
commit
aa6564f038
1 changed files with 2 additions and 1 deletions
|
@ -70,8 +70,9 @@ module Middleman::CoreExtensions
|
|||
@cache.delete(path)
|
||||
end
|
||||
|
||||
YAML_ERRORS = [ Exception, ArgumentError ]
|
||||
YAML_ERRORS = [ StandardError ]
|
||||
|
||||
# https://github.com/tenderlove/psych/issues/23
|
||||
if defined?(Psych) && defined?(Psych::SyntaxError)
|
||||
YAML_ERRORS << Psych::SyntaxError
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue