14813: Updates misleading error message
authorEric Biagiotti <ebiagiotti@veritasgenetics.com>
Thu, 1 Aug 2019 18:45:41 +0000 (14:45 -0400)
committerEric Biagiotti <ebiagiotti@veritasgenetics.com>
Thu, 1 Aug 2019 18:46:42 +0000 (14:46 -0400)
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 <ebiagiotti@veritasgenetics.com>

src/common/config.ts

index 7363b95d4e70351dd8c29bb6e40327bb2a73063d..496b0b78891b3657d7119abc0116b2ec1780ed91 100644 (file)
@@ -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<ClusterConfigJSON>(getClusterConfigURL(workbenchConfig.API_HOST)).then(response => {
                 const config = new Config();