Files
talk/client/coral-admin/src/services/config.js
T
2016-11-03 11:52:28 +01:00

15 lines
377 B
JavaScript

/**
* Just load the root config file and throw an
* error message if not present
*/
try {
module.exports = require('../../config.json')
} catch (error) {
const message = `The config.json file under the root directory is missing
or invalid Please add one to use this app. You can use config.sample.json as a guide.`
window.alert(message)
throw new Error(message)
}