picombo 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/classes/router.rb +4 -2
  2. data/lib/core/core.rb +1 -1
  3. metadata +2 -2
@@ -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
@@ -74,7 +74,7 @@ module Picombo
74
74
  class Core
75
75
  @@cli = false
76
76
 
77
- VERSION = '0.3.3'
77
+ VERSION = '0.3.4'
78
78
 
79
79
  # Determines if the request was made on the CLI or not
80
80
  def self.cli
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 3
9
- version: 0.3.3
8
+ - 4
9
+ version: 0.3.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jeremy Bush