picombo 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/classes/router.rb +4 -2
- data/lib/core/core.rb +1 -1
- metadata +2 -2
data/lib/classes/router.rb
CHANGED
@@ -94,7 +94,8 @@ module Picombo
|
|
94
94
|
# Try and load the controller class
|
95
95
|
begin
|
96
96
|
controller = Picombo::Controllers::const_get(uri[:controller].capitalize!).new
|
97
|
-
rescue LoadError, NameError
|
97
|
+
rescue LoadError, NameError => e
|
98
|
+
puts 'LoadError or NameError: '+e.message
|
98
99
|
return Picombo::Controllers::Error_404.new.run_error(@@req.path)
|
99
100
|
end
|
100
101
|
|
@@ -113,7 +114,8 @@ module Picombo
|
|
113
114
|
else
|
114
115
|
controller.send(uri[:method], *uri[:params])
|
115
116
|
end
|
116
|
-
rescue Picombo::E404
|
117
|
+
rescue Picombo::E404 => e
|
118
|
+
puts '404 Error: '+e.message
|
117
119
|
return Picombo::Controllers::Error_404.new.run_error(@@req.path)
|
118
120
|
end
|
119
121
|
else
|
data/lib/core/core.rb
CHANGED