From: Eric Biagiotti Date: Thu, 1 Aug 2019 18:45:41 +0000 (-0400) Subject: 14813: Updates misleading error message X-Git-Tag: 2.0.0~41^2 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/61769345c78e04b0f756dcd15e39fe57ddb75c80 14813: Updates misleading error message The API_HOST could be undefined from config.json or the default set in the environment. Arvados-DCO-1.1-Signed-off-by: Eric Biagiotti --- diff --git a/src/common/config.ts b/src/common/config.ts index 7363b95d..496b0b78 100644 --- a/src/common/config.ts +++ b/src/common/config.ts @@ -72,7 +72,7 @@ export const fetchConfig = () => { }) .then(workbenchConfig => { if (workbenchConfig.API_HOST === undefined) { - throw new Error(`Unable to start Workbench. API_HOST is undefined in ${WORKBENCH_CONFIG_URL}.`); + throw new Error(`Unable to start Workbench. API_HOST is undefined in ${WORKBENCH_CONFIG_URL} or the environment.`); } return Axios.get(getClusterConfigURL(workbenchConfig.API_HOST)).then(response => { const config = new Config();