MCPcopy
hub / github.com/dbcli/pgcli / echo_error

Function echo_error

pgcli/main.py:1626–1646  ·  view source on GitHub ↗
(msg: str)

Source from the content-addressed store, hash-verified

1624 server_tz = pgcli.pgexecute.get_timezone()
1625
1626 def echo_error(msg: str):
1627 click.secho(
1628 "Failed to determine the local time zone",
1629 err=True,
1630 fg="yellow",
1631 )
1632 click.secho(
1633 msg,
1634 err=True,
1635 fg="yellow",
1636 )
1637 click.secho(
1638 f"Continuing with the default time zone as preset by the server ({server_tz})",
1639 err=True,
1640 fg="yellow",
1641 )
1642 click.secho(
1643 "Set `use_local_timezone = False` in the config to avoid trying to override the server time zone\n",
1644 err=True,
1645 dim=True,
1646 )
1647
1648 local_tz = None
1649 try:

Callers 1

cliFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected