throw error if no config is supplied

This commit is contained in:
derpystuff 2024-01-12 21:38:42 +01:00
parent 246a64bca4
commit 0db3ea8256

View file

@ -15,7 +15,7 @@ function validateGroup(groups = [], featureId){
// Fetches the testing configuration from the cdn // Fetches the testing configuration from the cdn
async function getTestConfig(){ async function getTestConfig(){
//if(!process.env.TESTING_CONFIG_URL) throw "Missing TESTING_CONFIG_URL in environment"; if(!process.env.TESTING_CONFIG_URL) throw "Missing TESTING_CONFIG_URL in environment";
try{ try{
let config = await superagent.get(process.env.TESTING_CONFIG_URL) let config = await superagent.get(process.env.TESTING_CONFIG_URL)