Browse files

formatting

  • Loading branch information...
1 parent 01d2940 commit 032e3bea1e0c3c9438e074aa675983e932445d36 @dj2 dj2 committed Mar 8, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/goliath/application.rb
View
4 lib/goliath/application.rb
@@ -45,7 +45,9 @@ def self.app_file
# @return [Nil]
def self.run!
file = File.basename(app_file, '.rb')
- klass = begin Kernel.const_get(camel_case(file)) rescue NameError
+ klass = begin
+ Kernel.const_get(camel_case(file))
+ rescue NameError
raise NameError, "Class #{camel_case(file)} not found."
end
api = klass.new

0 comments on commit 032e3be

Please sign in to comment.