mirror of
https://github.com/Oreolek/kohana-migrations.git
synced 2024-06-26 03:40:54 +03:00
Don't exit with a zero status code on migration failure, fixes #27
This commit is contained in:
parent
5f1fecf77d
commit
0395d8f25d
|
@ -110,9 +110,11 @@ class Minion_Task_Migrations_Run extends Minion_Task
|
||||||
}
|
}
|
||||||
catch(Minion_Migration_Exception $e)
|
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('migration', $e->get_migration())
|
||||||
->set('error', $e->getMessage());
|
->set('error', $e->getMessage());
|
||||||
|
|
||||||
|
exit(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
$view = View::factory('minion/task/migrations/run')
|
$view = View::factory('minion/task/migrations/run')
|
||||||
|
|
Loading…
Reference in a new issue