Making WordPress.org

Changeset 10789


Ignore:
Timestamp:
03/05/2021 05:21:18 AM (6 years ago)
Author:
dd32
Message:

Theme Directory: reformat the layout of the failed command errors, for better handling in the error logging.

Follow up to [10786] & [10787].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php

    r10787 r10789  
    12871287                        trigger_error(
    12881288                                "Command failed, `{$command}`\n" .
    1289                                         "Return Value: {$return_var}\n" .
    1290                                         "STDOUT: ```{$stdout}```\n" .
    1291                                         "STDERR: ```{$stderr}```",
     1289                                        "```\n" .
     1290                                        "Return Value: {$return_var}\n" .
     1291                                        "STDOUT: {$stdout}\n" .
     1292                                        "STDERR: {$stderr}\n" .
     1293                                        "```",
    12921294                                E_USER_WARNING
    12931295                        );
     
    12951297                        trigger_error(
    12961298                                "Command produced errors, `{$command}`\n" .
     1299                                        "```\n" .
    12971300                                        "Return Value: {$return_var}\n" .
    1298                                         "STDOUT: ```{$stdout}```\n" .
    1299                                         "STDERR: ```{$stderr}```",
     1301                                        "STDOUT: {$stdout}\n" .
     1302                                        "STDERR: {$stderr}\n" .
     1303                                        "```",
    13001304                                E_USER_NOTICE
    13011305                        );
Note: See TracChangeset for help on using the changeset viewer.