Skip to content

Commit 21899c6

Browse files
committed
Merge pull request #63 from codeclimate/will/skip-file-log
skip file message: format everything in one call
2 parents 371a7cf + 52f3c2c commit 21899c6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/cc/engine/analyzers/analyzer_base.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ def initialize(engine_config:)
1818
def run(file)
1919
process_file(file)
2020
rescue *RESCUABLE_ERRORS => ex
21-
$stderr.puts("Skipping file #{file} due to exception:")
22-
$stderr.puts("(#{ex.class}) #{ex.message} #{ex.backtrace.join("\n")}")
21+
$stderr.puts("Skipping file #{file} due to exception (#{ex.class}): #{ex.message}\n#{ex.backtrace.join("\n")}")
2322
rescue => ex
2423
$stderr.puts("#{ex.class} error occurred processing file #{file}: aborting.")
2524
raise ex

0 commit comments

Comments
 (0)