mirror of
https://github.com/status-im/consul.git
synced 2025-02-12 13:46:46 +00:00
ui: Better error message checking for cross dc connect check (#8320)
This commit is contained in:
parent
927e73d8db
commit
cf9469f201
@ -19,7 +19,7 @@ export default RepositoryService.extend({
|
||||
const body = get(e, 'errors.firstObject.detail').trim();
|
||||
switch (code) {
|
||||
case '500':
|
||||
if (datacenter !== null && body === ERROR_MESH_DISABLED) {
|
||||
if (datacenter !== null && body.endsWith(ERROR_MESH_DISABLED)) {
|
||||
set(datacenter, 'MeshEnabled', false);
|
||||
}
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user