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

CLI error should be rendered directly to Terminal #490

Closed
janbarasek opened this issue Jun 3, 2021 · 5 comments
Closed

CLI error should be rendered directly to Terminal #490

janbarasek opened this issue Jun 3, 2021 · 5 comments

Comments

@janbarasek
Copy link
Contributor

I think CLI errors should be rendered directly to Terminal for better debug.

Concept:

Screenshot from 2021-06-03 14-57-26

Inspired by: https://github.com/baraja-core/nette-symfony-console/blob/master/src/Console.php#L67

Thanks.

@dg
Copy link
Member

dg commented Jun 3, 2021

duplicated to #486 ?

@janbarasek
Copy link
Contributor Author

A little yes. I would also add the file name and line number (for easy copying) and snippet code where the exception was thrown.

What do you think?

@dg
Copy link
Member

dg commented Jun 3, 2021

So it's about dumping a snippet of source code in debug mode? Yeah, that can be useful.

@janbarasek
Copy link
Contributor Author

Yes, it will. I can try implement it.

@janbarasek
Copy link
Contributor Author

Closed by #494.

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