Skip to content

Commit 69f2357

Browse files
committed
When the wordpress update script fails, exit with an error code so the manager will restart it.
1 parent 781d771 commit 69f2357

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/wordpress-update.js

+3
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,9 @@ function processNextAction( actionId, fn ) {
295295
processActions(function( error ) {
296296
if ( error ) {
297297
logger.error( "Error updating WordPress: " + error.stack );
298+
299+
// Kill the process with an error code and let the manager restart it
300+
process.exit( 1 );
298301
}
299302
});
300303

0 commit comments

Comments
 (0)