laravel / ideas

Issues board used for Laravel internals discussions.
938 stars 28 forks source link

Use descriptive information instead of generic exception #2516

Open sujit-baniya opened 3 years ago

sujit-baniya commented 3 years ago

In Laravel, it's quite difficult to debug the exception like this

php_network_getaddresses: getaddrinfo failed: Name or service not known

Above exception doesn't give any information and all of the time it's a guess or hit and trial mechanism to identify exact error

So it would be better if there's extra information for service or host would be good

ahinkle commented 3 years ago

That doesn't look like it's coming from Laravel as it's a direct issue with your MySQL/PHP configuration.

sujit-baniya commented 3 years ago

@ahinkle I got that... I think it would be great idea to add one extra information along with above error message from Laravel so that we don't need to go through error stack trace