Skip to content

Commit

Permalink
log exception
Browse files Browse the repository at this point in the history
  • Loading branch information
wr0ngway committed Apr 11, 2018
1 parent eb8c830 commit 55a9dad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/atmos/generator_factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def self.expand_sourcepaths(sourcepaths)

expanded_sourcepaths << local_template_path
logger.debug("Using git sourcepath: #{local_template_path}")
rescue
rescue => e
logger.log_exception(e, level: :debug)
logger.warn("Could not read from git archive, ignoring sourcepath: #{sourcepath}")
end

Expand All @@ -69,7 +70,8 @@ def self.expand_sourcepaths(sourcepaths)
local_template_path = File.join(tmpdir, template_subdir)
expanded_sourcepaths << local_template_path
logger.debug("Using zip sourcepath: #{local_template_path}")
rescue
rescue => e
logger.log_exception(e, level: :debug)
logger.warn("Could not read from zip archive, ignoring sourcepath: #{sourcepath}")
end

Expand Down

0 comments on commit 55a9dad

Please sign in to comment.