• KOBAYASHI Shuji's avatar
    Remove location info from `Exception#inspect` · d2f2f9db
    KOBAYASHI Shuji authored
    Because location info (file name and line number) is kept in the backtrace,
    it should not be kept in the result of `inspect` (and the exception object
    itself), I think.
    
    ### Example
    
      ```ruby
      # example.rb
      begin
        raise "err"
      rescue => e
        p e
      end
      ```
    
    #### Before this patch:
    
      ```
      $ bin/mruby example.rb
      example.rb:2: err (RuntimeError)
      ```
    
    #### After this patch:
    
      ```
      $ bin/mruby example.rb
      err (RuntimeError)
      ```
    d2f2f9db
error.c 14.6 KB