Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Exception#detailed_message to show backtrace #1952

Merged
merged 2 commits into from
Oct 18, 2023

Commits on Oct 13, 2023

  1. Use Exception#detailed_message to show backtrace

    Before:
    
    ```
    Use Ctrl-C to stop
            test.rb:4:in `block in <main>'
            /home/mame/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/sinatra-3.1.0/lib/sinatra/base.rb:1775:in `call'
    ```
    
    After:
    
    ```
    Use Ctrl-C to stop
    2023-10-13 18:49:17 - NoMethodError - undefined method `time' for 1:Integer:
    
              1.time {}
               ^^^^^
            Did you mean?  times
            test.rb:4:in `block in <main>'
            /home/mame/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/sinatra-3.1.0/lib/sinatra/base.rb:1775:in `call'
    ```
    mame committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    a5a4b28 View commit details
    Browse the repository at this point in the history
  2. Use String#lines(chomp: true)

    Co-authored-by: Patrik Ragnarsson <patrik@starkast.net>
    mame and dentarg committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    0721b2a View commit details
    Browse the repository at this point in the history