Skip to content

Commit d6f1a10

Browse files
committed
fix
1 parent 735ced9 commit d6f1a10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/com/emberjs/hbs/linter/ember-template-lint/TemplateLintResultParser.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class TemplateLintResultParser {
4545
try {
4646
val obj = Json.parseToJsonElement(stdout!!).jsonObject
4747

48-
val issues = obj.jsonArray
48+
val issues = obj.values.flatMap { map -> map.jsonArray }
4949
for (i in 0 until issues.size) {
5050
val issue = issues[i].jsonObject
5151

@@ -59,7 +59,7 @@ class TemplateLintResultParser {
5959
} catch (ioException: IOException) {
6060
return null
6161
} catch (exception: Exception) {
62-
LOG.warn("TemplateLint result parsing error")
62+
LOG.warn("TemplateLint result parsing error: $exception")
6363
throw Exception("TemplateLint result parsing error", exception)
6464
}
6565
}

0 commit comments

Comments
 (0)