Skip to content

Commit 43e9203

Browse files
committed
Scripts may finish without an error...
1 parent c380a9f commit 43e9203

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

scripts/retry.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ var processFailures = function( fn ) {
8383
};
8484

8585
processFailures(function( error ) {
86-
logger.error( "Error during retry: " + error.stack );
86+
if ( error ) {
87+
logger.error( "Error during retry: " + error.stack );
88+
}
8789
});
8890

8991
// Let the current retry finish, then stop processing and exit

scripts/wordpress-update.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,9 @@ function processNextAction( actionId, fn ) {
266266
}
267267

268268
processActions(function( error ) {
269-
logger.error( "Error updating WordPress: " + error.stack );
269+
if ( error ) {
270+
logger.error( "Error updating WordPress: " + error.stack );
271+
}
270272
});
271273

272274
// Let the current action finish, then stop processing and exit

0 commit comments

Comments
 (0)