Skip to content

Commit

Permalink
Improve failure diagnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Aug 12, 2019
1 parent e46d9ab commit 6a22d29
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion compiler/src/dotty/tools/backend/sjs/JSCodeGen.scala
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,10 @@ class JSCodeGen()(implicit ctx: Context) {
case EmptyTree => ()
case dd: DefDef => generatedMethods ++= genMethod(dd)
case _ =>
throw new FatalError("Illegal tree in gen of genInterface(): " + tree)
throw new FatalError(
i"""Illegal tree in gen of genInterface(): $tree
|class = $td
|in ${ctx.compilationUnit}""")
}
}

Expand Down

0 comments on commit 6a22d29

Please sign in to comment.