Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
WP Plugins
Cron-Control
Commits
403643f8
Verified
Commit
403643f8
authored
Dec 05, 2016
by
Erick Hitter
Browse files
Use WP-CLI's error class to handle error output and script termination
parent
b994eb26
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/wp-cli/class-one-time-fixers.php
View file @
403643f8
...
...
@@ -30,8 +30,7 @@ class One_Time_Fixers extends \WP_CLI_Command {
$count
=
(
int
)
$count
;
\
WP_CLI
::
line
(
sprintf
(
__
(
'Found %s total items'
,
'automattic-cron-control'
),
number_format_i18n
(
$count
)
)
.
"
\n\n
"
);
}
else
{
\
WP_CLI
::
line
(
__
(
'Something went wrong...aborting!'
,
'automattic-cron-control'
)
);
return
;
\
WP_CLI
::
error
(
__
(
'Something went wrong...aborting!'
,
'automattic-cron-control'
)
);
}
// Should we really destroy all this data?
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment