Skip to content

Commit 3148f41

Browse files
committed
Use Rails.backtrace_cleaner
1 parent a59fbd1 commit 3148f41

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Please follow the recommendations outlined at [keepachangelog.com](http://keepac
1919
Changes since the last non-beta release.
2020

2121
#### Fixed
22-
- Fix obscure errors by introducing FULL_TEXT_ERRORS [PR 1695](https://github.com/shakacode/react_on_rails/pull/1695) by [Romex91](https://github.com/Romex91).
22+
- Fix obscure errors by introducing FULL_TEXT_ERRORS [PR 1695](https://github.com/shakacode/react_on_rails/pull/1695) by [Romex91](https://github.com/Romex91).
2323

2424
### [14.1.1] - 2025-01-15
2525

lib/react_on_rails/prerender_error.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def calc_message(component_name, console_messages, err, js_code, props)
6060
backtrace = if Utils.full_text_errors_enabled?
6161
err.backtrace.join("\n")
6262
else
63-
"#{err.backtrace.first(15).join("\n")}\n" +
63+
"#{Rails.backtrace_cleaner.clean(err.backtrace).join("\n")}\n" +
6464
Rainbow("The rest of the backtrace is hidden. " \
6565
"To see the full backtrace, set FULL_TEXT_ERRORS=true.").red
6666
end

0 commit comments

Comments
 (0)