Clarify error message with details

This commit is contained in:
Lyubomir Marinov 2016-12-06 16:49:38 -06:00
parent 7487684301
commit 8f02b9249e
1 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,9 @@ export function loadConfig(host, configLocation = '/config.js') {
return config; return config;
}) })
.catch(error => { .catch(error => {
console.error('Failed to load config.js from remote server', error); console.error(
`Failed to load ${configLocation} from ${host}`,
error);
throw error; throw error;
}); });