| 47 | } |
| 48 | |
| 49 | cm::StdIo::TermAttr getMessageColor(MessageType t) |
| 50 | { |
| 51 | switch (t) { |
| 52 | case MessageType::INTERNAL_ERROR: |
| 53 | case MessageType::FATAL_ERROR: |
| 54 | case MessageType::AUTHOR_ERROR: |
| 55 | return cm::StdIo::TermAttr::ForegroundRed; |
| 56 | case MessageType::AUTHOR_WARNING: |
| 57 | case MessageType::WARNING: |
| 58 | return cm::StdIo::TermAttr::ForegroundYellow; |
| 59 | default: |
| 60 | return cm::StdIo::TermAttr::Normal; |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | void printMessageText(std::ostream& msg, std::string const& text) |
| 65 | { |
no outgoing calls
no test coverage detected
searching dependent graphs…