Let settings warnings output as warnings, not as an error
This commit is contained in:
parent
31067f163f
commit
39b5f57d4e
|
@ -77,7 +77,7 @@ for(var i in settings)
|
||||||
//test if the setting start with a low character
|
//test if the setting start with a low character
|
||||||
if(i.charAt(0).search("[a-z]") !== 0)
|
if(i.charAt(0).search("[a-z]") !== 0)
|
||||||
{
|
{
|
||||||
console.error("WARNING: Settings should start with a low character: '" + i + "'");
|
console.warn("Settings should start with a low character: '" + i + "'");
|
||||||
}
|
}
|
||||||
|
|
||||||
//we know this setting, so we overwrite it
|
//we know this setting, so we overwrite it
|
||||||
|
@ -88,7 +88,7 @@ for(var i in settings)
|
||||||
//this setting is unkown, output a warning and throw it away
|
//this setting is unkown, output a warning and throw it away
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
console.error("WARNING: Unkown Setting: '" + i + "'");
|
console.warn("Unkown Setting: '" + i + "'");
|
||||||
console.error("This setting doesn't exist or it was removed");
|
console.warn("This setting doesn't exist or it was removed");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue