Paired-with:Matt Robinson
Signed-off-by: Max Martin <[email protected]>
---
Local-branch: feature/next/6531_report_generator
lib/tasks/import_reports.rake | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/lib/tasks/import_reports.rake b/lib/tasks/import_reports.rake
index 4e8ce87..247fe49 100644
--- a/lib/tasks/import_reports.rake
+++ b/lib/tasks/import_reports.rake
@@ -15,7 +15,12 @@ namespace :reports do
pbar = ProgressBar.new("Importing:", reports.size, STDOUT)
reports.each do |report|
data = File.read(report)
- success = Report.create_from_yaml(data) rescue false
+ success = begin
+ Report.create_from_yaml(data)
+ rescue => e
+ puts e
+ false
+ end
skipped += 1 unless success
pbar.inc
end
--
1.7.4
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en.