DEV: Minor formatting fix when reporting server exceptions (#25126)

What we have now:

```
~~~~~~~ SERVER EXCEPTIONS ~~~~~~~Error encountered while proccessing /tag/tag24/l/latest  ArgumentError: wrong number of arguments (given 1, expected 0)    /__w/discourse/discourse/lib/site_setting_extension.rb:521:in `block in setup_methods'
```

What we actually want:

```
~~~~~~~ SERVER EXCEPTIONS ~~~~~~~
Error encountered while proccessing /tag/tag24/l/latest  ArgumentError: wrong number of arguments (given 1, expected 0)    /__w/discourse/discourse/lib/site_setting_extension.rb:521:in `block in setup_methods'
```
This commit is contained in:
Alan Guo Xiang Tan 2024-01-04 08:29:45 +08:00 committed by GitHub
parent d3dddc6e1b
commit e9f016726a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -603,7 +603,7 @@ RSpec.configure do |config|
lines << "~~~~~~~ SERVER EXCEPTIONS ~~~~~~~"
RspecErrorTracker.exceptions.each_with_index do |(path, ex), index|
lines << "\n" if index != 0
lines << "\n"
lines << "Error encountered while proccessing #{path}"
lines << " #{ex.class}: #{ex.message}"
ex.backtrace.each { |line| lines << " #{line}\n" }