mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 14:18:47 +00:00
Handle docker server failures if others succeed
This commit is contained in:
parent
cac21ebd38
commit
6b90d3ef28
2 changed files with 39 additions and 30 deletions
|
@ -52,7 +52,7 @@ export async function servicesResponse() {
|
|||
discoveredServices = cleanServiceGroups(await servicesFromDocker());
|
||||
} catch (e) {
|
||||
console.error("Failed to discover services, please check docker.yaml for errors or remove example entries.");
|
||||
if (e) console.error(e);
|
||||
if (e) console.error(e.toString());
|
||||
discoveredServices = [];
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ export async function servicesResponse() {
|
|||
configuredServices = cleanServiceGroups(await servicesFromConfig());
|
||||
} catch (e) {
|
||||
console.error("Failed to load services.yaml, please check for errors");
|
||||
if (e) console.error(e);
|
||||
if (e) console.error(e.toString());
|
||||
configuredServices = [];
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,7 @@ export async function servicesResponse() {
|
|||
initialSettings = await getSettings();
|
||||
} catch (e) {
|
||||
console.error("Failed to load settings.yaml, please check for errors");
|
||||
if (e) console.error(e);
|
||||
if (e) console.error(e.toString());
|
||||
initialSettings = {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue