diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-04-12 08:37:51 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-04-12 08:37:51 +0200 |
commit | 23dd325bdf9714bc4f2f804d30104d2d2a3ae595 (patch) | |
tree | 4972374520e9dea618102730a7c8e6769a3d7853 /project | |
parent | fc65423d8d6a7548393d212e17c8563cf40bcfc0 (diff) | |
download | scala-23dd325bdf9714bc4f2f804d30104d2d2a3ae595.tar.gz scala-23dd325bdf9714bc4f2f804d30104d2d2a3ae595.tar.bz2 scala-23dd325bdf9714bc4f2f804d30104d2d2a3ae595.zip |
SI-7360 Don't let a follow-up TypeError obscure the original error.
When supplementing a fatal error message with context (current
compilation unit, tree, phase, etcetera), we must be cautious to
not to trigger another error which will obscure the original one.
Currently, `supplementErrorMessage` does its working a try catch
that only catches `Exception`. But this fails to catch
CyclicReferenceError (<: TypeError <: Throwable), as was seen
in a recent mailing list post by Greg Meredith.
This commit extends the catch clause.
Diffstat (limited to 'project')
0 files changed, 0 insertions, 0 deletions