Skip to content

Commit 486ea99

Browse files
committed
fixing errror message display
1 parent f161584 commit 486ea99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function formatErrorMessage (err){
4040
let message = err.message
4141
if (message.indexOf("Network Error")>-1){
4242
message = "Network Error"
43-
}else if(err.data && err.data["api:message"]){
43+
}else if(err.data){
4444
if( err.data["api:message"] === "Incorrect authentication information"){
4545
message = "Incorrect authentication information, wrong username or password"
4646
}else if (err.data["api:status"]==="api:conflict"){

0 commit comments

Comments
 (0)