From 61769345c78e04b0f756dcd15e39fe57ddb75c80 Mon Sep 17 00:00:00 2001 From: Eric Biagiotti Date: Thu, 1 Aug 2019 14:45:41 -0400 Subject: [PATCH] 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 --- src/common/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.30.2