Skip to content

Commit 40e4603

Browse files
committed
Fix incorrect variable usage in backtrace handling
Corrected the use of the `error.backtrace` variable to `backtrace` in `lib/solid_errors/subscriber.rb` to ensure proper handling of backtrace data.
1 parent cf0afbc commit 40e4603

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/solid_errors/subscriber.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def report(error, handled:, severity:, context:, source: nil)
4343

4444
SolidErrors::Occurrence.create(
4545
error_id: record.id,
46-
backtrace: error.backtrace&.join("\n"),
46+
backtrace: backtrace&.join("\n"),
4747
context: s(context)
4848
)
4949
end

0 commit comments

Comments
 (0)