restsh.util.print_formated_err

restsh.util.print_formated_err#

Pretty prints a json error structure and falls back to plain text if json parsing fails.

Usage: restsh.util.printjson <json>