MCPcopy Index your code
hub / github.com/dbcli/pgcli / exception_formatter

Function exception_formatter

pgcli/main.py:1852–1856  ·  view source on GitHub ↗
(e, verbose_errors: bool = False)

Source from the content-addressed store, hash-verified

1850
1851
1852def exception_formatter(e, verbose_errors: bool = False):
1853 s = str(e)
1854 if verbose_errors:
1855 s += "\n" + diagnostic_output(e.diag)
1856 return click.style(s, fg="red")
1857
1858
1859def format_output(title, cur, headers, status, settings, explain_mode=False):

Callers 2

runMethod · 0.70
_evaluate_commandMethod · 0.70

Calls 1

diagnostic_outputFunction · 0.85

Tested by

no test coverage detected