summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-25 18:02:12 +0200
committerChristian Poessinger <christian@poessinger.com>2021-04-25 18:02:12 +0200
commit675b473a07f8af7c7c01203ce7ed16f09e3085ba (patch)
treeac00f2daac77020c7b5698e7ec1cc766c9896f7c
parentefa744c63b388773a4ea76d0f690042ec1689159 (diff)
downloadvyos-1x-675b473a07f8af7c7c01203ce7ed16f09e3085ba.tar.gz
vyos-1x-675b473a07f8af7c7c01203ce7ed16f09e3085ba.zip
frr: T2638: fix error message grammar error and add debug howto
-rw-r--r--python/vyos/frr.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/vyos/frr.py b/python/vyos/frr.py
index de3dbe6e9..df6849472 100644
--- a/python/vyos/frr.py
+++ b/python/vyos/frr.py
@@ -203,7 +203,10 @@ def reload_configuration(config, daemon=None):
for i, e in enumerate(output.split('\n')):
LOG.debug(f'frr-reload output: {i:3} {e}')
if code == 1:
- raise CommitError(f'Configuration FRR failed while commiting code, please enabling debugging to examine logs')
+ raise CommitError('FRR configuration failed while running commit. Please ' \
+ 'enable debugging to examine logs.\n\n\n' \
+ 'To enable debugging run: "touch /tmp/vyos.frr.debug" ' \
+ 'and "sudo systemctl stop vyos-configd"')
elif code:
raise OSError(code, output)