<?php

namespace FluxBB\Server\Exception;

use Illuminate\Support\MessageBag;

class ValidationFailed extends \Exception
{
    protected $errors;


    public function __construct(MessageBag $errors)
    {
        $this->errors = $errors;
    }

    /**
     * Get all validation errors.
     *
     * @return \Illuminate\Support\MessageBag
     */
    public function getErrors()
    {
        return new $this->errors;
    }
}

<?php

namespace FluxBB\Server\Exception;

use Illuminate\Support\MessageBag;

class ValidationFailed extends \Exception
{
    protected $errors;


    public function __construct(MessageBag $errors)
    {
        $this->errors = $errors;
    }

    /**
     * Get all validation errors.
     *
     * @return \Illuminate\Support\MessageBag
     */
    public function getErrors()
    {
        return $this->errors;
    }
}

Fix validation errors not being passed on correctly.
Fix validation errors not being passed on correctly.
