fix scheduler return value if status is not recognized

This commit is contained in:
Nicolas Le Goff
2012-05-04 19:23:57 +02:00
parent c72ce0b5e4
commit e2f3fd2e13

View File

@@ -44,7 +44,6 @@ class module_console_schedulerState extends Command
require_once __DIR__ . '/../../../../lib/bootstrap.php';
try {
$appbox = appbox::get_instance(\bootstrap::getCore());
$task_manager = new task_manager($appbox);
@@ -78,9 +77,7 @@ class module_console_schedulerState extends Command
return 13;
break;
}
} catch (\Exception $e) {
return 1;
}
}
}