Commit 1d136208 authored by Erick Hitter's avatar Erick Hitter
Browse files

Improve error for premature events, as we don't know if the event still exists

parent bf899f31
......@@ -67,7 +67,7 @@ class Orchestrate_Runner extends \WP_CLI_Command {
$now = time();
if ( $timestamp > $now ) {
\WP_CLI::error( sprintf( __( 'This event is not scheduled to run until %1$s GMT', 'automattic-cron-control' ), date( TIME_FORMAT, $timestamp ) ) );
\WP_CLI::error( sprintf( __( 'Given timestamp is for %1$s GMT, %2$s from now. The event\'s existence was not confirmed, and no attempt was made to execute it.', 'automattic-cron-control' ), date_i18n( TIME_FORMAT, $timestamp ), human_time_diff( $now, $timestamp ) ) );
// Run the event
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment