From d28ce4499067b103565e0873e4677fd771962512 Mon Sep 17 00:00:00 2001 From: l0crian1 Date: Tue, 4 Aug 2026 13:17:54 -0400 Subject: T7552: Added more detail to error messages --- python/vyos/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/vyos/base.py b/python/vyos/base.py index 67f92564e..6b57eaf8e 100644 --- a/python/vyos/base.py +++ b/python/vyos/base.py @@ -64,8 +64,8 @@ class DeprecationWarning(): class ConfigError(Exception): def __init__(self, message): - # Reformat the message and trim it to 72 characters in length - message = fill(message, width=72) + # Wrap each line separately so intentional newlines are preserved + message = '\n'.join(fill(line, width=72) for line in message.split('\n')) # Call the base class constructor with the parameters it needs super().__init__(message) -- cgit v1.2.3