api repl: print output directly if not json

This commit is contained in:
2026-07-10 11:28:25 +02:00
parent 9a42b86d62
commit 5644046c78

View File

@@ -280,7 +280,7 @@ func prettyfiJson(conf *cfg.Config, raw []byte) (string, error) {
err := json.Indent(&pretty, raw, "", "\t")
if err != nil {
return "", fmt.Errorf("json parse error: %w", err)
return string(raw), nil
}
return pretty.String(), nil