Commit 02fd26cd authored by Nick Daugherty's avatar Nick Daugherty

Revert "Exit without an error status when event is not found"

This reverts commit 0f57ac9b.
parent 0f57ac9b
......@@ -128,9 +128,7 @@ class Events extends \WP_CLI_Command {
if ( ! is_object( $event ) ) {
/* translators: 1: Event ID */
\WP_CLI::warning( sprintf( __( 'Failed to locate event %d. Please confirm that the entry exists and that the ID is that of an event.', 'automattic-cron-control' ), $args[0] ) );
exit;
\WP_CLI::error( sprintf( __( 'Failed to locate event %d. Please confirm that the entry exists and that the ID is that of an event.', 'automattic-cron-control' ), $args[0] ) );
}
/* translators: 1: Event ID, 2: Event action, 3. Event instance */
......
Markdown is supported
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