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

fix: change error logs to show only error message #1788

Closed
meetulr opened this issue Mar 24, 2024 · 1 comment
Closed

fix: change error logs to show only error message #1788

meetulr opened this issue Mar 24, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@meetulr
Copy link
Contributor

meetulr commented Mar 24, 2024

Describe the bug

Currently we're logging the entire error instance in our files, which is very verbose, and could be discomforting to work with, we only need the error.message for most development purposes.

Expected behavior

a simple error message should tell us what went wrong with our mutations and queries:
error-log

Solution

Change console.log(error) to console.log(error.message)

@meetulr meetulr added the bug Something isn't working label Mar 24, 2024
@meetulr
Copy link
Contributor Author

meetulr commented Mar 24, 2024

I have fixed it, please assign me so that I can raise a PR.

@meetulr meetulr changed the title Bug Report fix: log only the error message Mar 24, 2024
@meetulr meetulr changed the title fix: log only the error message fix: change error logs to show only error message Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants