Skip to content

Commit 83a4bbe

Browse files
committed
review error message
1 parent 5afdfdf commit 83a4bbe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/tdb-dashboard/src/hooks/hookUtils.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { localSettings } from "../../localSettings";
22
import { getCRConflictError } from "../components/utils"
3+
import React from "react"
34
export 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"

0 commit comments

Comments
 (0)