lib/gistory/cli/main.rb in gistory-0.1.7 vs lib/gistory/cli/main.rb in gistory-0.1.8
- old
+ new
@@ -12,14 +12,14 @@
def run
repo = GitRepo.new(path: @repo_path)
parser = Cli::ArgParser.new(args: @args, io: @io)
config = parser.parse
history(repo, config.gem_name)
- rescue Gistory::ParserError => error
- @io.error error.message
+ rescue Gistory::ParserError => e
+ @io.error e.message
@io.puts parser
- rescue Gistory::Error => error
- @io.error error.message
+ rescue Gistory::Error => e
+ @io.error e.message
end
private
def history(repo, gem_name)