🐛 Fixed docker prettier plugin issue

This commit is contained in:
2025-09-27 20:11:31 +08:00
parent 08860e9a5c
commit 0188b618f2
3 changed files with 19 additions and 9 deletions

View File

@@ -43,7 +43,10 @@ func Format(this js.Value, args []js.Value) any {
SpaceRedirects: spaceRedirects,
}
result := lib.FormatFileLines(originalLines, c)
result, err := lib.FormatFileLines(originalLines, c)
if err != nil {
return []any{true, err.Error()}
}
return []any{false, result}
}