mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 20:26:13 +01:00
Updates for handling 404 response text.
This commit is contained in:
parent
7e0305e37c
commit
50a057994e
@ -325,7 +325,12 @@
|
|||||||
}
|
}
|
||||||
function pingDestinationFailed(data, status) {
|
function pingDestinationFailed(data, status) {
|
||||||
vm.pingAvailable = true;
|
vm.pingAvailable = true;
|
||||||
vm.pingMessage = $filter('tr')('failed_to_ping_target', []) + (data && data.length > 0 ? ':' + data : '');
|
if(status === 404) {
|
||||||
|
data = '';
|
||||||
|
}
|
||||||
|
vm.pingMessage = $filter('tr')('failed_to_ping_target', []) + data;
|
||||||
|
console.log("Failed to ping target:" + data);
|
||||||
|
|
||||||
vm.pingTIP = false;
|
vm.pingTIP = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -163,7 +163,11 @@
|
|||||||
}
|
}
|
||||||
function pingDestinationFailed(data, status) {
|
function pingDestinationFailed(data, status) {
|
||||||
vm.pingTIP = false;
|
vm.pingTIP = false;
|
||||||
vm.pingMessage = $filter('tr')('failed_to_ping_target', []) + (data && data.length > 0 ? ':' + data : '');
|
if(status === 404) {
|
||||||
|
data = '';
|
||||||
|
}
|
||||||
|
vm.pingMessage = $filter('tr')('failed_to_ping_target', []) + data;
|
||||||
|
console.log("Failed to ping target:" + data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user