1
0
Fork 0
mirror of synced 2024-10-04 12:15:14 +13: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 { 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();