Skip to content
This repository has been archived by the owner on May 9, 2019. It is now read-only.

Commit

Permalink
changed error handling for #3
Browse files Browse the repository at this point in the history
  • Loading branch information
nirnanaaa committed Mar 29, 2013
1 parent 58ae3e8 commit a4d2009
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions lib/gollum_rails/adapters/activemodel/error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ module ActiveModel
class Error < ::GollumRails::GollumInternalError
extend ::ActiveModel::Naming

#######
private
#######

# Gets the Priority
attr_reader :priority

######
public
######
Expand All @@ -22,12 +15,8 @@ class Error < ::GollumRails::GollumInternalError

# Initializes a new Exception
#
def initialize(name, message = nil, stack = nil, priority = :crit)
if priority == :high or priority == :crit
super("Error thrown: #{name},\n\n #{(message||stack)}")
else
puts "Info: #{name}, \n\n #{(message||stack)}"
end
def initialize(name, message = nil, priority = :crit)
super("Error thrown: #{name},\n\n #{(message)}")
end


Expand Down

0 comments on commit a4d2009

Please sign in to comment.