[config_tool] Duplicate error for vUART connection

improve the translateError function by adding a condition: if there are errors describing the same error and same paths, remove the repeat one.

Tracked-On: #8117
Signed-off-by: Chuang-Ke <chuangx.ke@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
Chuang Ke 2022-09-07 13:35:13 +08:00 committed by acrnsi-robot
parent 7a99e1b1d8
commit cafb562597
1 changed files with 1 additions and 0 deletions

View File

@ -415,6 +415,7 @@ export default {
if (errorType === 'semantic') {
formErrors[vmid].push(error)
}
formErrors[vmid] = _.uniq(formErrors[vmid])
})
}