File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
packages/tdb-dashboard/src/hooks Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 11import { localSettings } from "../../localSettings" ;
22import { getCRConflictError } from "../components/utils"
3+ import React from "react"
34export function getOptions ( token ) {
45
56 const options = {
@@ -40,6 +41,10 @@ export function formatErrorMessage (err){
4041 let message = err . message
4142 if ( message . indexOf ( "Network Error" ) > - 1 ) {
4243 message = "Network Error"
44+ if ( localSettings . connection_type === "LOCAL" ) {
45+ message = `Network Error the ${ localSettings . server } is not running.
46+ You need to use docker compose to use the dashboard`
47+ }
4348 } else if ( err . data ) {
4449 if ( err . data [ "api:message" ] === "Incorrect authentication information" ) {
4550 message = "Incorrect authentication information, wrong username or password"
You can’t perform that action at this time.
0 commit comments