diff --git a/dashboard/src/components/SystemUpdate.vue b/dashboard/src/components/SystemUpdate.vue index f9f18e243..50d7617af 100644 --- a/dashboard/src/components/SystemUpdate.vue +++ b/dashboard/src/components/SystemUpdate.vue @@ -60,6 +60,7 @@ const currentPattern = ref(''); const updateBusy = ref(false); const updateError = ref({}); const stopError = ref({}); +const updateCheckError = ref({}); const checkingBusy = ref(false); const pendingUpdate = ref(null); const skipBackup = ref(false); @@ -108,6 +109,7 @@ async function refreshInfo() { updateError.value = {}; stopError.value = {}; + updateCheckError.value = {}; pendingUpdate.value = result || null; } @@ -218,9 +220,14 @@ async function onSubmitUpdate() { async function onCheck() { checkingBusy.value = true; + updateCheckError.value = {}; const [error] = await updaterModel.checkBoxUpdate(); - if (error) return console.error(error); + if (error) { + updateCheckError.value.generic = error.body?.message || 'Internal error'; + checkingBusy.value = false; + return; + } await refreshInfo(); checkingBusy.value = false; @@ -336,6 +343,7 @@ onMounted(async () => {
{{ lastTask.message }}