src/Application.php
private function showPermissionError(PermissionError $e)
    {
        if (PHP_SAPI !== "cli")
        {
            http_response_code(500);
            header("Content-type: text/plain");
        }

        if ($this->dev)
        {
            $file = $e->path;
            echo "{$e->getMessage()}\n";
            echo "\n";
            echo WF::str($e, false);
        }
        else
        {
            echo "A permission error is preventing this page from displaying properly.";
        }
        die();
    }
private function showPermissionError(PermissionError $e)
    {
        if (PHP_SAPI !== "cli")
        {
            http_response_code(500);
            header("Content-type: text/plain");
        }

        if ($this->dev)
        {
            $file = $e->path;
            echo "{$e->getMessage()}\n";
            echo "\n";
            echo WF::str($e, false);
        }
        else
        {
            echo "A permission error is preventing this page from displaying properly.";
        }
        die();
    }
Helper to display permission errors when system setup fails due to
broken permissions.