mirror of
https://codeberg.org/scip/esctl.git
synced 2026-08-24 06:34:18 +02:00
api repl: print output directly if not json
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user