Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: erlang/otp
base: master
Choose a base ref
...
head repository: nox/otp
compare: better-error-reports
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on May 5, 2013

  1. Teach the VM how to output human-friendly stacktraces

    When an error isn't caught by a catch expression, the VM sends the
    faulty stacktrace as a string with a small message to the error logger.
    As it is already a string representation and not the stacktrace itself,
    the result may as well be readable and human-friendly.
    
    Example:
    
      1> spawn(fun () -> (fun () -> 1 + foo end)(), 42 end).
    
      =ERROR REPORT==== 5-May-2013::15:28:15 ===
      Error in process <0.45.0> with exit value: badarith
      #1      erlang:'+'(1, foo) <BIF>
      #2      erl_eval:do_apply/6 ["erl_eval.erl":573]
      #3      erl_eval:exprs/5 ["erl_eval.erl":118]
    nox committed May 5, 2013
    Copy the full SHA
    e74a033 View commit details
    Browse the repository at this point in the history