Skip to content

Commit

Permalink
Only request human output for non-result in the JSON ui.
Browse files Browse the repository at this point in the history
  • Loading branch information
floitsch committed Oct 4, 2024
1 parent f893664 commit 7918b00
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ui.toit
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,9 @@ class JsonPrinter extends HumanPrinterBase:
needs-structured --kind/int -> bool:
return kind == Ui.RESULT

wants-human --kind/int -> bool:
return kind != Ui.RESULT

print_ str/string:
print-on-stderr_ str

Expand Down

0 comments on commit 7918b00

Please sign in to comment.