Skip to content

Commit ff97361

Browse files
committed
🐛 fix reference to variable bom_directory within rescue block
Signed-off-by: Peter H. Boling <[email protected]>
1 parent a17b6a3 commit ff97361

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cyclonedx/bom_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def self.build(path)
2424
begin
2525
FileUtils.mkdir_p(bom_directory) unless File.directory?(bom_directory)
2626
rescue StandardError => e
27-
@logger.error("Unable to create the directory to hold the BOM output at #{@bom_directory}. #{e.message}: #{e.backtrace.join('\n')}")
27+
@logger.error("Unable to create the directory to hold the BOM output at #{bom_directory}. #{e.message}: #{e.backtrace.join('\n')}")
2828
abort
2929
end
3030

0 commit comments

Comments
 (0)