Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed Jun 5, 2024
1 parent 2595e6d commit 95f3827
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

package org.apache.comet.fuzz

import java.io.{BufferedWriter, FileWriter, PrintWriter}
import java.io.{BufferedWriter, FileWriter, PrintWriter, StringWriter}

import scala.io.Source

Expand Down Expand Up @@ -111,9 +111,11 @@ object QueryRunner {
showSQL(w, sql)
w.write(s"[ERROR] Query failed in Comet: ${e.getMessage}:\n")
w.write("```\n")
val p = new PrintWriter(w)
val sw = new StringWriter()
val p = new PrintWriter(sw)
e.printStackTrace(p)
p.close()
w.write(s"${sw.toString}\n")
w.write("```\n")
}

Expand Down

0 comments on commit 95f3827

Please sign in to comment.