MCPcopy
hub / github.com/joeferner/redis-commander / errorHandler

Function errorHandler

web/static/scripts/redisCommander.js:355–365  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

353 }
354
355 function errorHandler(error) {
356 if (error.responseJSON) {
357 if (error.responseJSON.message) {
358 $('#body').html('<h5>Got ERROR: ' + error.responseJSON.message + '</h5>');
359 }
360 else {
361 $('#body').html('<h5>Network ERROR calling server...</h5>');
362 }
363 if (error.responseJSON.connectionClosed) setRootConnectionNetworkError(true, getKeyTree().get_selected(true)[0]);
364 }
365 }
366}
367
368function selectTreeNodeBranch (data) {

Callers

nothing calls this directly

Calls 3

$Function · 0.85
getKeyTreeFunction · 0.85

Tested by

no test coverage detected