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

Improve terminal error output #1751

Merged
merged 2 commits into from
Apr 22, 2024
Merged

Improve terminal error output #1751

merged 2 commits into from
Apr 22, 2024

Conversation

lastmjs
Copy link
Member

@lastmjs lastmjs commented Apr 19, 2024

Closes: #1752

I've introduced an execSyncPretty function to be used in place of execSync. This will catch the default error output and create a much nicer terminal output for the developer. It has a default stack trace and should be quite practical. Not the most beautiful still, we might want to improve it in the future, but it should be much better than what currently happens.

What currently happens is confusing and verbose, it logs stdout, stderr, with a lot of Uint8Arrays or buffers or such, and it is generally scary-looking and not helpful.

That has hopefully been fixed or greatly improved with this PR.

@bdemann bdemann changed the base branch from main to reloadjs_auth April 22, 2024 17:40
@bdemann bdemann changed the base branch from reloadjs_auth to main April 22, 2024 17:52
@lastmjs lastmjs merged commit 3b94a2f into main Apr 22, 2024
122 of 126 checks passed
@lastmjs lastmjs deleted the improve_terminal_error_output branch July 19, 2024 16:48
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

Successfully merging this pull request may close these issues.

Get rid of horrible azle error output with stdout/stderr arrays and everything
2 participants