MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / get_error

Function get_error

web/pgadmin/dashboard/precondition.py:35–46  ·  view source on GitHub ↗
(i_node_type)

Source from the content-addressed store, hash-verified

33 )
34
35 def get_error(i_node_type):
36 stats_type = ('activity', 'prepared', 'locks', 'config')
37 if f.__name__ in stats_type:
38 return precondition_required(
39 gettext("Please connect to the selected {0}"
40 " to view the table.".format(i_node_type))
41 )
42 else:
43 return precondition_required(
44 gettext("Please connect to the selected {0}"
45 " to view the graph.".format(i_node_type))
46 )
47
48 # Below check handle the case where existing server is deleted
49 # by user and python server will raise exception if this check

Callers 1

wrapFunction · 0.85

Calls 2

precondition_requiredFunction · 0.90
gettextFunction · 0.85

Tested by

no test coverage detected