From 804a1a5b26e0eb8c6a066a040558f8710bb7afef Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 21 Oct 2022 09:03:25 +0200 Subject: [PATCH] soc/add_uart: Improve error message for unsupported UART. --- litex/soc/integration/soc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index 377a7458d..8ca3d229c 100755 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -1326,10 +1326,10 @@ class LiteXSoC(SoC): "rx_fifo_depth": fifo_depth, } if (uart_pads is None) and (uart_name not in supported_uarts): - self.logger.error("{} UART {}, supported are: {}.".format( + self.logger.error("{} UART {}, supported are: \n{}.".format( colorer(uart_name), colorer("not supported/found on board", color="red"), - colorer(", ".join(supported_uarts)))) + colorer("- " + "\n- ".join(supported_uarts)))) raise SoCError() # Crossover.