app install: show any install error in the UI

This commit is contained in:
Girish Ramakrishnan
2025-12-18 15:23:56 +01:00
parent 9a5c49bd08
commit b537d73a55
@@ -162,9 +162,8 @@ async function onSubmit(overwriteDns) {
formError.value.port = match ? parseInt(match[1]) : null;
} else if (error.status === 409 && error.body.message.indexOf('primary location') !== -1) {
formError.value.location = error.body.message;
} else if (error.status === 412) {
formError.value.generic = error.body.message;
} else {
formError.value.generic = error.body?.message || `Error installing app. Status code: ${error.status} . ${error.body}`;
console.error('Failed to install:', error);
}
}