Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error output #7535

Closed
harikt opened this issue Feb 20, 2015 · 2 comments
Closed

Better error output #7535

harikt opened this issue Feb 20, 2015 · 2 comments

Comments

@harikt
Copy link
Contributor

harikt commented Feb 20, 2015

Hi,

Was trying php artisan make:console and noticed

exception 'RuntimeException' with message 'Not enough arguments.' in /laravel-test/vendor/symfony/console/Symfony/Component/Console/Input/Input.php:77
Stack trace:
#0 /laravel-test/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(248): Symfony\Component\Console\Input\Input->validate()
#1 /laravel-test/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 /laravel-test/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /laravel-test/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(Illuminate\Foundation\Console\ConsoleMakeCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /laravel-test/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /laravel-test/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(91): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /laravel-test/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 {main}

My experience working with Symfony console is it provides did you mean, or displays the help command. Can we make it some what similar than exceptions ?

Thank you.

@taylorotwell
Copy link
Member

This is fixed in recent commit. Will be tagged stable today probably! :)

@harikt
Copy link
Contributor Author

harikt commented Feb 21, 2015

Thank you @taylorotwell . Same errors happened for other commands. Hope that also got fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants