1
0
Fork 0
mirror of https://github.com/Oreolek/kohana-migrations.git synced 2024-05-04 18:18:16 +03:00

Don't exit with a zero status code on migration failure, fixes #27

This commit is contained in:
Matt Button 2011-07-13 14:19:13 -07:00
parent 5f1fecf77d
commit 0395d8f25d

View file

@ -110,9 +110,11 @@ class Minion_Task_Migrations_Run extends Minion_Task
}
catch(Minion_Migration_Exception $e)
{
return View::factory('minion/task/migrations/run/exception')
echo View::factory('minion/task/migrations/run/exception')
->set('migration', $e->get_migration())
->set('error', $e->getMessage());
exit(2);
}
$view = View::factory('minion/task/migrations/run')