Skip to content
Snippets Groups Projects
Commit 1f71b3e5 authored by James Tucker's avatar James Tucker Committed by CQ bot account: commit-bot@chromium.org
Browse files

[fx] introduce fx-error and fx-warn with colors

fx-error prints ERROR: and it's arguemnts to stderr, with the prefix colored
red if stderr is a terminal.
fx-warn prints WARNING: and it's arguemnts to stderr, with the prefix colored
yellow if stderr is a terminal.

test -t is known to be imperfect, however, it should be sufficiently portable
to be usable for now without otherwise going off the deep end.

This should help to make errors and warnings stand out in output for a large
group of users.

Change-Id: Ib7fdee3ca677bfd27e4a3a64d39ecc9a812bfeab
parent deeca0d6
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment