Making WordPress.org

Changeset 14443


Ignore:
Timestamp:
04/30/2025 07:14:04 AM (11 months ago)
Author:
dd32
Message:

Plugin Directory: Plugin Import: Avoid a fatal error when the SVN checkout can't be made, but there's no svn errors returned.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php

    r14432 r14443  
    737737
    738738        if ( ! $svn_info['result'] ) {
    739             throw new Exception( 'Could not find stable SVN URL: ' . implode( ' ', reset( $svn_info['errors'] ) ) );
     739            throw new Exception( 'Could not find stable SVN URL: ' . ( $svn_info['errors'] ? implode( ' ', reset( $svn_info['errors'] ) ) : 'Unknown error' ) );
    740740        }
    741741
     
    772772            }
    773773
    774             throw new Exception( 'Could not create SVN export: ' . implode( ' ', reset( $svn_export['errors'] ) ) );
     774            throw new Exception( 'Could not create SVN export: ' . ( $svn_export['errors'] ? implode( ' ', reset( $svn_export['errors'] ) ) : 'Unknown error' ) );
    775775        }
    776776
Note: See TracChangeset for help on using the changeset viewer.