config-tools: add alert for non-exist file

Add alert when importing an non-exist scenario file

Tracked-On: #7413
Signed-off-by: Conghui <conghui.chen@intel.com>
This commit is contained in:
Conghui 2022-05-05 12:21:13 +08:00 committed by acrnsi-robot
parent 599894e571
commit 9669cc1c58

View File

@ -76,9 +76,10 @@ export default {
console.log(scenarioConfig)
this.$emit('scenarioUpdate', scenarioConfig['acrn-config'])
alert(`Scenario ${this.currentSelectedScenario} loaded success!`)
}).catch((err) => {
console.log(err)
alert(`Failed to open ${this.currentSelectedScenario}, file may not exist`)
})
}
},
openScenarioFileSelectDialog() {