File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
compiler/test/dotty/tools/dotc Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -264,13 +264,14 @@ abstract class CompilerTest {
264
264
private def compileArgs (args : Array [String ], expectedErrorsPerFile : List [ErrorsInFile ])
265
265
(implicit defaultOptions : List [String ]): Unit = {
266
266
val allArgs = args ++ defaultOptions
267
+ val verbose = allArgs.contains(" -verbose" )
267
268
// println(s"""all args: ${allArgs.mkString("\n")}""")
268
269
val processor = if (allArgs.exists(_.startsWith(" #" ))) Bench else Main
269
270
val storeReporter = new Reporter with UniqueMessagePositions with HideNonSensicalMessages {
270
271
private val consoleReporter = new ConsoleReporter ()
271
272
private val innerStoreReporter = new StoreReporter (consoleReporter)
272
273
def doReport (m : MessageContainer )(implicit ctx : Context ): Unit = {
273
- if (m.level == ERROR ) {
274
+ if (m.level == ERROR || verbose ) {
274
275
innerStoreReporter.flush()
275
276
consoleReporter.doReport(m)
276
277
}
You can’t perform that action at this time.
0 commit comments