question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

In error messages, only make the message red

See original GitHub issue

I’m submitting a … (check one with “x”)

[ ] bug report => search github for a similar issue or PR before submitting
[x ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

Error messages appear with a massive amount of red text, which is very intimidating especially for new developers. They often take one look at it and then post questions for help instead of realizing that the message does contain the help they need.

Expected behavior

Consider only displaying the actual error message and its potential fixes in red. Display the file names, system messages and stack trace in some other color. That helps developers to focus in on the actual error and its recommended fix (if any).

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

  • Angular version: 2.0.X

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

  • Language: [all | TypeScript X.X | ES6/7 | ES5]

  • Node (for AoT issues): node --version =

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
vicbcommented, Oct 3, 2016

@pkozlowski-opensource is right, it’s only a console.error()

I don’t think we want to implement browser specific behavior here (cf @arciisine) plus other people will probably start complaining it’s not red enough…

1reaction
arciisinecommented, Oct 3, 2016

Looks like it might be possible to support in Firefox/Chrome without much effort. http://stackoverflow.com/questions/7505623/colors-in-javascript-console

Read more comments on GitHub >

github_iconTop Results From Across the Web

Color for (error)messages in forms - UX Stack Exchange
The best color for displaying pop-up message is green and red. If there is no error then the output ...
Read more >
How to display error messages in red font color on form using ...
Currently I'm showing the error message in alert. But the requirement is it should be displayed above the form and the field having...
Read more >
How to display errors in red when your brand color is ALSO red?
The point of red is to stand out and be apparent, not that red is implicitly an error. Just make it obviously distinct...
Read more >
<h:messages> in red color font. - Oracle Communities
I need to display error message in red colored font. I am wrote following code, but still, i am getting error message in...
Read more >
Error Messages: Examples, Best Practices & Common Mistakes
Peep was trying to fill out a form on a venue's website to get a quote for an event. However, he got a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found