Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,11 @@ protected function rebuild_affected_zips( $plugin_slug, $stable_tag, $current_st
$stable_tag
);
} catch ( Exception $e ) {
$this->warnings['zip_build_failed'] = $e->getMessage();

// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Routed to the error log via E_USER_WARNING; raw is fine.
trigger_error( sprintf( '%s: ZIP build failed for %s: %s', $plugin_slug, implode( ', ', array_unique( $versions_to_build ) ), $e->getMessage() ), E_USER_WARNING );

return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ public function build( $slug, $versions, $context = '', $stable_tag = '' ) {

} catch ( Exception $e ) {
// In event of error, skip this file this time.
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Routed to the error log via E_USER_WARNING; raw is fine.
trigger_error( sprintf( 'ZIP build failed for %s %s: %s', $this->slug, $version, $e->getMessage() ), E_USER_WARNING );

$this->cleanup_plugin_tmp();

// Perform an SVN up to revert any changes made.
Expand Down
Loading