[chore](regression) print exception along with error sql when run sql file (#18374)

This commit is contained in:
AlexYue
2023-04-07 14:19:47 +08:00
committed by GitHub
parent d36e9bd523
commit ccb3541fa5

View File

@ -88,7 +88,8 @@ class SqlFileSource implements ScriptSource {
try {
quickTest(tagName, singleSql, order)
} catch (Throwable e) {
exceptionStr += "\n${e.getMessage()}\n"
String curException = "exception : ${e.getMessage()}\n" + "sql is :" + "${singleSql}\n"
exceptionStr += curException
}
}
if (exceptionStr.size() != 0) {