Skip to content

Commit

Permalink
Changed version
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrudny committed May 12, 2011
1 parent bdfcda0 commit eed777e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion init.rb
Expand Up @@ -24,7 +24,7 @@
name 'Redmine Trackmine plugin'
author 'Piotr Brudny'
description 'This plugin integrates Redmine projects with Pivotal Tracker'
version '0.0.3'
version '1.0.1'

menu :admin_menu, :mapping, { :controller => :mappings, :action => 'index' }, :caption =>'Trackmine', :last => true
end
4 changes: 2 additions & 2 deletions lib/issue_patch.rb
Expand Up @@ -17,7 +17,7 @@ def self.included(klass) # :nodoc:
elsif issue.pivotal_story_id == 0 && issue.pivotal_project_id == 0
#Do nothing when both are empty
else
raise Exception.new("You should fill both fields (Pivotal Story ID, Pivotal Project ID) in issue: '#{self.subject}' or none")
throw Exception.new("You should fill both fields (Pivotal Story ID, Pivotal Project ID) in issue: '#{issue.subject}' or none")
end
rescue => e
TrackmineMailer.deliver_error_mail("Error while closing story: " + e)
Expand All @@ -39,7 +39,7 @@ def pivotal_custom_value(name)
:customized_type => 'Issue' },
:custom_fields => { :name => name } }

raise Exception.new("Can't find #{name} custom field for issue: '#{self.subject}'") if cv.nil?
logger.error("Can't find #{name} custom field for issue: '#{self.subject}'") if cv.nil?
return cv
end

Expand Down

0 comments on commit eed777e

Please sign in to comment.