lib/scan/report_collector.rb in scan-0.13.1 vs lib/scan/report_collector.rb in scan-0.14.0

- old
+ new

@@ -14,11 +14,14 @@ def parse_raw_file(path) UI.user_error!("Couldn't find file at path '#{path}'") unless File.exist?(path) commands = generate_commands(path) commands.each do |output_path, command| - system(command) - UI.success("Successfully generated report at '#{output_path}'") + if system(command) + UI.success("Successfully generated report at '#{output_path}'") + else + UI.user_error!("Failed to generate report at '#{output_path}'") + end if @open_report and output_path.end_with?(".html") # Open the HTML file `open --hide '#{output_path}'` end