diff --git a/src/utils/config/scope.js b/src/utils/config/scope.js index ccf08152..ad3cedaf 100644 --- a/src/utils/config/scope.js +++ b/src/utils/config/scope.js @@ -20,7 +20,7 @@ function checkIPRange(ip, ipSpace) { return true; } } else { - console.error("Invalid ipSpace: ", ipSpace); + throw new Error(`Invalid ipSpace: ${ipSpace}`); } return false; }