public
Rubygem
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-core.git
Log syntax errors when loading the app.
Sat Oct 11 21:30:03 -0700 2008
commit  42da35e9861d0ca0ef228a017316a31d76cf0e29
tree    cba5dac7c5570b3c1164d3544e4b1a62dbd7a3ba
parent  3ae019fe96ffaa6cdaa79181279a1f8ef192eb69
...
769
770
771
772
773
 
 
774
775
776
...
769
770
771
 
 
772
773
774
775
776
0
@@ -769,8 +769,8 @@ class Merb::BootLoader::LoadClasses < Merb::BootLoader
0
       # the file is changed, it'll be reloaded again
0
       begin
0
         load file
0
-      rescue SyntaxError
0
-        return
0
+      rescue SyntaxError => e
0
+        Merb.logger.error "Cannot load #{file} because of syntax error: #{e.message}"
0
       ensure
0
         if Merb::Config[:reload_classes]
0
           MTIMES[file] = File.mtime(file)

Comments