Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@wispem-wantex
Copy link
Contributor

When something goes wrong it should print in red. It looks better and adds visual contrast (drawing your eye to the important bit).

Before vs after (test assertion failed):
image
image

Before vs after (build failure):
image
image

@pkova
Copy link
Collaborator

pkova commented Jan 29, 2024

Let's rip the clay changes out of this one. We probably want highlighted errors for clay too in the future but it's going to be strange if this is the only error case that clay prints out with red text.

@wispem-wantex
Copy link
Contributor Author

I considered that; what I'm wondering is how to find all error cases. I only did this one because I ran into it a lot. Is there an easier way to find all the places where errors are printed besides running into them one by one, saying "Hey, that's an error, it should be in red", and fixing it?

@pkova
Copy link
Collaborator

pkova commented Jan 30, 2024

There isn't. We can worry about that later, since even without the clay change this PR is a straight improvement. Rip that change out and I'll merge this.

@pkova pkova merged commit 8092e2a into urbit:develop Jan 31, 2024
Fang- added a commit that referenced this pull request Feb 19, 2024
It appears that bb8ba24 merged changes to /ted/test from #6790 and #6896
incorrectly, as the thread no longer compiled.

Because the former PR included the change made to the latter (printing
with slog priority 3 in case of failure), the minimum viable fix is
taking the contents of /ted/test from #6790 and using those as-is.

However, that had hidden success prints behind a "quiet" flag, and
provided no way of configuring that from outside the thread. So
additionally, we expand the ""vase parsing"" performed on the thread's
argument, such that an optional _first_ parameter of a quiet=? may be
passed.
pkova pushed a commit that referenced this pull request Feb 22, 2024
It appears that bb8ba24 merged changes to /ted/test from #6790 and #6896
incorrectly, as the thread no longer compiled.

Because the former PR included the change made to the latter (printing
with slog priority 3 in case of failure), the minimum viable fix is
taking the contents of /ted/test from #6790 and using those as-is.

However, that had hidden success prints behind a "quiet" flag, and
provided no way of configuring that from outside the thread. So
additionally, we expand the ""vase parsing"" performed on the thread's
argument, such that an optional _first_ parameter of a quiet=? may be
passed.
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.

3 participants