From b98f37729d2e991cf4d522bddc1818552cb996fa Mon Sep 17 00:00:00 2001 From: James Lyne Date: Thu, 9 Dec 2021 18:26:20 +0000 Subject: [PATCH] Suggest solutions for missing config object --- src/main.ts | 2 +- src/util/config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 944725c..08981a9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -76,5 +76,5 @@ try { app.mount('#app'); } catch(e) { console.error('LiveAtlas configuration is invalid: ', e); - showSplashError('LiveAtlas configuration is invalid\n' + e, true); + showSplashError('LiveAtlas configuration is invalid:\n' + e, true); } diff --git a/src/util/config.ts b/src/util/config.ts index 9cdcbfd..dbd880b 100644 --- a/src/util/config.ts +++ b/src/util/config.ts @@ -122,7 +122,7 @@ const validateDynmapConfiguration = (config: DynmapUrlConfig): Map => { if (!config) { - throw new ConfigurationError(`Configuration object is missing`); + throw new ConfigurationError(`No configuration found.\nCheck for any syntax errors in your configuration in index.html. Your browser console may contain additional information.`); } if (typeof config.servers !== 'undefined') {