1
0
Fork 0
mirror of synced 2024-07-02 21:20:58 +12:00

chore: better error msg

This commit is contained in:
loks0n 2023-11-06 14:49:33 +00:00
parent 4440859c05
commit 75669b9b2e

View file

@ -90,7 +90,7 @@ App::post('/v1/proxy/rules')
try {
$domain = new Domain($domain);
} 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();