mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-23 00:57:44 +01:00
Merge pull request #1160 from wknet123/master-handle-rep-err
Updates for handling 404 response text. NMT
This commit is contained in:
commit
e99d4b8466
@ -325,7 +325,12 @@
|
||||
}
|
||||
function pingDestinationFailed(data, status) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
@ -163,7 +163,11 @@
|
||||
}
|
||||
function pingDestinationFailed(data, status) {
|
||||
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