chore: better error msg
This commit is contained in:
parent
4440859c05
commit
75669b9b2e
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ App::post('/v1/proxy/rules')
|
||||||
try {
|
try {
|
||||||
$domain = new Domain($domain);
|
$domain = new Domain($domain);
|
||||||
} catch (\Exception) {
|
} catch (\Exception) {
|
||||||
throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'Invalid domain. Domain may not start with http:// or https://.');
|
throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'Domain may not start with http:// or https://.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$ruleId = ID::unique();
|
$ruleId = ID::unique();
|
||||||
|
|
Loading…
Reference in a new issue