PHP 8.3.31
Preview: ProcessFailedException.php Size: 1.05 KB
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/Process/Exceptions/ProcessFailedException.php

<?php

namespace Illuminate\Process\Exceptions;

use Illuminate\Contracts\Process\ProcessResult;
use RuntimeException;

class ProcessFailedException extends RuntimeException
{
    /**
     * The process result instance.
     *
     * @var \Illuminate\Contracts\Process\ProcessResult
     */
    public $result;

    /**
     * Create a new exception instance.
     *
     * @param  \Illuminate\Contracts\Process\ProcessResult  $result
     * @return void
     */
    public function __construct(ProcessResult $result)
    {
        $this->result = $result;

        $error = sprintf('The command "%s" failed.'."\n\nExit Code: %s",
            $result->command(),
            $result->exitCode(),
        );

        if (! empty($result->output())) {
            $error .= sprintf("\n\nOutput:\n================\n%s", $result->output());
        }

        if (! empty($result->errorOutput())) {
            $error .= sprintf("\n\nError Output:\n================\n%s", $result->errorOutput());
        }

        parent::__construct($error, $result->exitCode() ?? 1);
    }
}

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
1.05 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
907 B lrw-rw-rw- 2025-09-17 06:53:00
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).