Commit 53a20533 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #335 from daylerees/develop

Show an error when an artisan task's method cannot be found.
parents 620f3ba9 29d062da
......@@ -42,8 +42,15 @@ class Command {
throw new \Exception("Sorry, I can't find that task.");
}
if(method_exists($task, $method))
{
$task->$method(array_slice($arguments, 1));
}
else
{
throw new \Exception("Sorry, I can't find that method!");
}
}
/**
* Determine if the given command arguments are valid.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment