diff options
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 74257d3ea..3028ec192 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -357,7 +357,7 @@ Rails.application.routes.draw do if File.exists?(file) begin instance_eval File.read(file) - rescue Exception => e + rescue SyntaxError, StandardError => e puts "An error occurred while loading the routes definition of #{File.basename(plugin_dir)} plugin (#{file}): #{e.message}." exit 1 end |