Project

General

Profile

« Previous | Next » 

Revision 77753e33

Added by Marc Dequènes over 10 years ago

[evol] catch Psych new SyntaxError-based exceptions (since Ruby 1.9)

View differences:

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