Revision 77753e33
Added by Marc Dequènes almost 11 years ago
lib/cyborghood/base/config.rb | ||
---|---|---|
raise_if_validation_errors("'#{type}' schema", errors)
|
||
|
||
schema
|
||
rescue
|
||
logger.fatal "Could not load schema for '%s': %s" % [type, $!]
|
||
rescue StandardError, SyntaxError => e
|
||
logger.fatal "Could not load schema for '%s': %s" % [type, e.message]
|
||
exit 1
|
||
end
|
||
|
Also available in: Unified diff
[evol] catch Psych new SyntaxError-based exceptions (since Ruby 1.9)