diff --git a/lib/commands/info.rb b/lib/commands/info.rb index a33be75..7fc7c79 100644 --- a/lib/commands/info.rb +++ b/lib/commands/info.rb @@ -10,6 +10,11 @@ def run! put "Branch name must contain a Pivotal Tracker story id" return 1 end + + unless story_id > 0 + put "Branch name must contain a Pivotal Tracker story id" + return 1 + end put "Story: #{story.name}" put "URL: #{story.url}"