Skip to content

Commit

Permalink
Use YAML::SyntaxError since ParseError does not exist under Psyck Yaml
Browse files Browse the repository at this point in the history
implementations.
  • Loading branch information
Jeff Bellegarde committed Feb 24, 2014
1 parent 5207ab8 commit dea5662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/synapse
Expand Up @@ -37,7 +37,7 @@ def parseconfig(filename)
raise ArgumentError, "config file does not exist:\n#{e.inspect}"
rescue Errno::EACCES => e
raise ArgumentError, "could not open config file:\n#{e.inspect}"
rescue YAML::ParseError => e
rescue YAML::SyntaxError => e
raise "config file #{filename} is not yaml:\n#{e.inspect}"
end
return c.to_ruby
Expand Down

0 comments on commit dea5662

Please sign in to comment.