mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
change error msg
This commit is contained in:
parent
ed4e85f28a
commit
5ce141b75b
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ class Create extends Base
|
||||||
if (!is_null($scheduledAt)) {
|
if (!is_null($scheduledAt)) {
|
||||||
$validator = new DatetimeValidator(requireDateInFuture: true, precision: DateTimeValidator::PRECISION_MINUTES, offset: 60);
|
$validator = new DatetimeValidator(requireDateInFuture: true, precision: DateTimeValidator::PRECISION_MINUTES, offset: 60);
|
||||||
if (!$validator->isValid($scheduledAt)) {
|
if (!$validator->isValid($scheduledAt)) {
|
||||||
throw new Exception(Exception::GENERAL_BAD_REQUEST, 'Scheduled execution date must be at least 60 seconds in the future');
|
throw new Exception(Exception::GENERAL_BAD_REQUEST, 'Execution schedule must be a valid date, and at least 1 minute from now.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue