I don't like to throw only the migration exception. It was on the plans to
change it. Do you have any suggestions?

2014-03-22 2:05 GMT+02:00 Dionysis Zindros <notifications@github.com>:

> In controllers/migrationrun.php:
>
> > +            }
> > +            catch ( ModelNotFoundException $e ) {
> > +                $last = 'You have not created any logs yet.';
> > +            }
> > +            $migrations = Migration::findAll();
> > +            require_once 'views/migration/create.php';
> > +        }
> > +        protected function run( $name, $env ) {
> > +            $this->environment = $env;
> > +            $this->init();
> > +
> > +            try {
> > +                require_once 'database/migration/' . $name;
> > +            }
> > +            catch ( MigrationException $e ) {
> > +                throw $e;
>
> No need to catch and rethrow
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/dionyziz/endofcodes/pull/147/files#r10858962>
> .
>